Mar 12, 2013 ABAP New Debugger has also got few new features as part of release 7.0 EhP2. A new addition “Key” in Table Display Tool is added to check various keys available on the Internal Table.
ABAP debuggingDebugging is a process to understand program behavior in runtime. SAP has a inbuilt debugger which is part of the ABAP workbench.
Debugging stepsThere are two possible strategies for starting the Debugger in the ABAP Workbench:By running the program in debugging mode.By setting breakpoints then running the program Running a Program in Debugging Mode. From the Object Navigator - select a program and choose Test/Execute from the Development Object menu.
The Choose Execution Type dialog box appears. Choose Debugging. From the initial screen of the ABAP Editor Choose Program - Execute -Debugging (or the Debugging pushbutton). From any screen Choose System ® Utilities ® Debug ABAP. From any screen Enter ' /h ' in the command field.Breakpoints.There are two types of breakpoints.
Static. Dynamic Static Break pointsAddition of a break point statement in your program.Static breakpoints are not normally user-specific. However, you can make them user-specific.Dynamic Breakpoints.
Directly-set dynamic breakpoints: Can be set in the ABAP Editor or the Debugger. Dynamic breakpoints are displayed as stop signs in the Debugger and ABAP Editor. Unlike static breakpoints, they are user-specific, and are deleted when you log off from the R/3 System. Breakpoint at statement: The Debugger stops the program directly before the specified statement is executed. You set this special kind of dynamic breakpoint in the Debugger. Breakpoint at event: The Debugger stops the program directly before an event, subroutine, or module pool is called.
You set this special kind of dynamic breakpoint in the Debugger. Breakpoints at System Exceptions: The Debugger stops the program directly after a system exception, that is, after a runtime error has been intercepted by a CATCH statement. WatchpointsA watchpoint is an indicator in a program that tells the ABAP runtime processor to interrupt the program at a particular point. Unlike breakpoints, however, watchpoints are not activated until the contents of a specified field change.
Watchpoints, like dynamic breakpoints, are user-specific, and so do not affect other users running the same program.You can only define watchpoints in the Debugger.You set watchpoints in the Debugger to monitor the contents of specific fields. They inform you when the value of a field changes. When the value changes, the Debugger interrupts the program.
![Como dibujar abap oo o Como dibujar abap oo o](http://www.dataxstream.com/wp-content/uploads/2009/11/Debug-ABAP-Web-Service-02.jpg)
SAP ABAP Training - Debugging Your Programs Part 1Learn SAP - BEGINNERS GUIDE TO LEARNING SAP ABAP - Debugging Your ABAP Programs Part 1Topics include:Fields modeSystem VariablesTable ModeBreakpointsStatic BreakpointsWatchpointsEnding a Debug SessionThis chapter will introduce the ABAP debugger, and will introduce some of the tools which can be used to ensure that the programs you create function as intended. It will also show ways to highlight logic bugs in programs that cannot be identified by the syntax checker.The first step here is to load a program which has been used previously, and which ac-cesses the database table which has been created regarding employee records.