You are on page 1of 3

26/08/2016 BreakpointsABAPAnalysisToolsSAPLibrary

TheBestRunBusinessesRunSAP

TechnologyPlatform SAPBusinessWarehouse SAPNetWeaverBIContent

Breakpoints
ApartfrombeingabletoexecuteanABAPprogramintheDebugger,youcanalsostarttheDebuggercallby
thechoosingabreakpoint.Thisisachievedbysettingoneormoreofthesebreakpointsintheprogram.A
breakpointisasignalataparticularpointintheprogramthattellstheABAPruntimeprocessortointerrupt
processingandstarttheDebugger.TheDebuggerisactivatedwhentheprogramreachesthispoint.
Thereisalsoaspecialkindofbreakpointcalledawatchpoint.Whenyouusewatchpoints,theDebuggerisnot
activateduntilthecontentsofaparticularfieldchange.Formoreinformation,refertothechapterWatchpoints.

BreakpointVariants
TheDebuggercontainsdifferentbreakpointvariants:

Static Auserspecificbreakpointisinsertedinthesourcecode
asanABAPstatementusingthekeyword BREAK
POINT .AnonuserspecificbreakpointissetintheABAP
Editorusingthe BREAKusername statement.

Directlyset CanbesetintheABAPEditorortheDebuggerbydouble
dynamicbreakpoints clickingaline,forexample.Dynamicbreakpointsare
alwaysuserspecific,andaredeletedwhenyoulogoff
fromtheR/3System.

Breakpoints TheDebuggerstopstheprogramimmediatelybeforethe
atstatements specifiedstatementisexecuted.

Breakpoints TheDebuggerstopstheprogramimmediatelybeforethe
atsubroutines specifiedsubroutineiscalled.

Breakpointsatfunctionmodules TheDebuggerstopstheprogramimmediatelybeforethe
specifiedfunctionmoduleiscalled.

Breakpointsatmethods TheDebuggerstopstheprogramimmediatelybeforethe
specifiedmethodiscalled.

Breakpointsatexceptionsandsystemexceptions TheDebuggerstopstheprogramimmediatelyaftera
systemexception,thatis,afteraruntimeerrorhasbeen
intercepted.

http://help.sap.com/saphelp_nw70/helpdata/en/c6/617cbee68c11d2b2ab080009b43351/content.htm 1/3
26/08/2016 BreakpointsABAPAnalysisToolsSAPLibrary

StaticBreakpoints
Staticbreakpointsarealwaysuserindependentifthereisnospecificationofausername.Onceauserhas
insertedthestatementBREAKPOINTorBREAKnameinanABAPprogram,thesystemalwaysinterruptsthe
programatthatpointforthatuseroronlyfortheusername.Thisprocedureisonlyusefulinthedevelopment
phaseofanapplicationwhenprogramexecutionisalwaystobeinterruptedatthesameplace.Formore
information,refertothechapterStaticBreakpoints.
InHTTPsessions,astaticbreakpointisskippedifyoudidnotsetadditionaldynamicHTTPbreakpointsinthe
editorofaBSPpage.Instead,acorrespondingsystemlogentryiswritten,whichcanbecheckedusing
transactionSM21.

DynamicBreakpoints
Dynamicbreakpointsareuserspecific.Therefore,youshouldusethemifyouonlywanttheprogramtobe
interruptedwhenyourunityourself,notwhenitisbeingexecutedbyotherusers.Alldynamicbreakpointsare
deletedwhenyoulogofffromtheR/3System.
Dynamicbreakpointsaremoreflexiblethanstaticbreakpointsbecauseyoucandeactivateordeletethemat
runtime.Theyhavethefollowingadvantages:
Youdonothavetochangetheprogramcode.
Youcansetthemevenwhentheprogramislockedbyanotherprogrammer.
Youcandefineacounterthatonlyactivatesthebreakpointafterithasbeenreached.
Specialdynamicbreakpointsareusefulwhenyouwanttointerruptaprogramdirectlybeforeaparticular
ABAPstatement,asubroutine,oranevent,butdonotknowexactlywheretofinditinthesourcecode.
Eventhereisusedtorefertotheoccurrenceofaparticularstatement,forexample,orcallingupa
method.Specialdynamicbreakpointsareuserspecific.YoucanonlysetthemintheDebugger.Formore
information,refertothechapterDynamicBreakpoints.
InHTTPsessions,thesystemstopsbothatstaticanddynamicbreakpointsifadynamicbreakpointwas
setintheeditorofaBSPpagebeforeprogramexecution.

LifetimeandTransferofBreakpoints
AstaticbreakpointremainsintactaslongastheBREAKPOINTorBREAKPOINTname
statementisnotremovedfromthesourcecode.Withoutsaving,dynamicbreakpointsonly
remainintactintherelevantinternalsession.However,theyremainineffectduringtheentire
usersessioniftheyaresavedbychoosingthemenupath Breakpoints Save intheABAP
Debugger.Formoredetailsonthesubjectofusersessionsandmodes,referto Modularization
Techniques intheABAPkeyworddocumentation.
IfyoucallanHTTPsessionduringausersession,onlytheHTTPbreakpointsareloadedwhentheHTTP
sessionisstarted.YouactivateHTTPdebuggingintheABAPEditorbychoosing Utilities Settings
HTTPDebugging .Dependingonthesetting,thesystemthendisplayseithertheHTTPorstandard
breakpointsintheEditor.
Ifyoucallanupdatesessionduringausersession,breakpointsthatweredefinedbeforehandinthecalling
processingunitarecopiedtothenewupdatesession,wheretheycanbedisplayedunder Breakpoints .If,in
theABAPDebugger,youcheck UpdateDebugging under Settings andthen,forexample,calltheupdate
modulefuncusingCALLFUNCTIONfuncINUPDATETASK,anewwindowisopenedinwhichyoucan

http://help.sap.com/saphelp_nw70/helpdata/en/c6/617cbee68c11d2b2ab080009b43351/content.htm 2/3
26/08/2016 BreakpointsABAPAnalysisToolsSAPLibrary

debugthisfunctionmoduleintheupdatesession.Allthebreakpointsthatweresetinthecallingprocessing
unitcanalsobeprocessedhere.
Forfurtherinformationonspecialbreakpoints,referto:
BreakpointsatStatements
BreakpointsatSubroutines
BreakpointsatFunctionModuleCalls
BreakpointsatMethods
BreakpointsatSystemExceptions

C OPYR I GH T BY SAP SE OR AN SAP AF F I LI AT E C OM PAN Y. ALL R I GH T S R ESER VED . PR I N T ED F R OM SAP H ELP POR TAL.

(ht t p: / / help. s ap. c om )

http://help.sap.com/saphelp_nw70/helpdata/en/c6/617cbee68c11d2b2ab080009b43351/content.htm 3/3

You might also like