Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
10Activity
0 of .
Results for:
No results containing your search query
P. 1
Debugging Technique in ABAP

Debugging Technique in ABAP

Ratings: (0)|Views: 551|Likes:
Debugging Technique in ABAP
Debugging Technique in ABAP

More info:

Published by: Amarto Bhattacharyya on Aug 20, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/30/2013

pdf

text

original

 
Debugger
The Debugger is a programming tool that you can use to execute ABAP programs, by line or bysection. With this tool, you can display data objects and check the flow logic of programs.Two types of debugging are currently possible: Debugging with the
classic
Debugger forrelease levels up to and including 6.40 or debugging with the
new
Debugger, which is availablefor all releases after 6.40. The main differences between the classic and the new ABAPDebuggers are described below:
The
Classic ABAP Debugger
runs in the same roll area as the application to beanalyzed (debuggee). It is therefore displayed in the same window as the application.However, this technology also has some restrictions. For example, some ABAPprograms (such as conversion exist) cannot be analyzed in debug mode for technicalreasons. However, the most significant restriction is that no ABAP technology can beused for designing the Debugger interface and it is therefore not possible to create amodern user interface.
The
New ABAP Debugger
, on the other hand, is executed in a separate externalsession (Debugger), while the application to be analyzed (debuggee) uses a secondexternal session. With this technology, the user interface of the Debugger can bedesigned freely by ABAP means.The new Debugger provides the user with a flexible interface that can be configured as requiredand has more than eight desktops. Here it is possible to place and arrange up to four tools -depending on the user's selection. For example, it is possible to display source texts orstructures. In this way, the user can design the Debugger interface according to it’s ownindividual requirements.As of Release 6.40, you can select the debugging type as you wish by choosing the classicDebugger or the new Debugger in the ABAP Editor from the path
Utilities 
 
 
Settings 
. It is alsopossible to switch the Debugger at any time during a session under the menu option
Debugging 
. As of Release 7.00, the new ABAP Debugger is the default.
Overview of FunctionsUse
The ABAP Debugger is an integrated test tool within the ABAP Workbench. You use it to checkthe program logic and to find errors in the source code of an ABAP program. In the Debugger,you can step through the source code of a program. The running program is interrupted aftereach step, allowing you to check its processing logic and the results of individual statements.As of Release 6.10, you can also run
Business Server Pages
(BSP) in the debugging mode.You can also display and set breakpoints here. Business Server Pages can be displayed in the
Object Navigator
when you select an appropriate application under BSP Application.
 
Features
The Debugger provides an efficient means of identifying errors in ABAP programs. It containsthe following functions:· Ways of starting the Debugger
Choosing different views
Choosing different execution options in the Debugger
Displaying source code in the Debugger
Setting and deleting breakpoints
Setting and deleting watchpoints
Stopping a program at a particular statement or event
Displaying and changing field contents at runtime
Displaying ABAP Objects and references
Displaying and positioning strings
Setting and deleting database locks
Opening the ABAP Editor, or Object Navigator
System settings and runtime warnings
Starting the Classic Debugger
There are two possible strategies for starting the Debugger in the ABAP Workbench:
By setting breakpoints then running the program
By running the program in debugging mode.
Setting Breakpoints 
A breakpoint is a signal in a specific line of the program source code. This signal indicates to theABAP runtime processor to stop the program at the relevant line and start the ABAP Debugger.A distinction is made between static and dynamic breakpoints. For further information about thedifferent types of breakpoints and how to use them.
Direct Processing 
You can start the Debugger without previously having set breakpoints. This is the bestprocedure to use when you want to test a program right from the beginning. It is also a usefulprocedure if you are not overly familiar with the program and therefore are not sure where bestto set breakpoints. You can start the Debugger as follows:From the
ObjectNavigator
 Select a program or transaction and choose
Program 
 
 ® 
Test 
 
 ® 
Debugging.From the
ABAP Editor
Choose
Program 
 
 ® 
 
Execute 
 
 ® 
 
Debugging 
(or the
Debugging 
pushbutton). In the source code display, you
 
need to select the menu Program
 ® 
Test
 ® 
 
Debugging 
 
From any screen
Choose
System 
 
 ® 
 
Utilities 
 
 ® 
 
Debug ABAP 
.
From any screen
Enter
/h
in the command field.
Checking System Programs for Errors 
To check a program or program component that is part of the ABAP Workbench (for example,the Screen Painter), you must use the system Debugger. To start the system Debugger, choose
System 
 
 ® 
 
Utilities 
 
 ® 
 
Debug System 
from any screen. To stop the system Debugger, choose
Debugger 
 
 ® 
 
Debugging off 
.
Displaying Program Attributes 
You can display the attributes
Fixed Point Arithmetic, System Program
, and
UnicodeChecks
of the program that has just been executed by choosing Goto
 
Further Information 
 
 
Program Attributes 
.
Restarting the Debugger 
If you choose
Debugging 
 
 
Restart 
, debugging mode is stopped and the system takes you tothe initial screen of the last transaction you called. If, for example, you started an ABAP programin debugging mode from transaction
SE38
(ABAP Editor), choosing
Debugging 
 
 
Restart 
willtake you back to the screen titled
ABAP Editor: Initial Screen 
. If you want to restart the programin debugging mode, choose the menu Program
 
 ® 
Execute
 
 ® 
 
Debugging 
or choose the
Debugging 
pushbutton.
Switching Between the Single-Process and Two-Process Debugger 
As of Release 6.40, you can preset the call for the new Debugger in the ABAP Editor byselecting the menu
Utilities 
 
 
Settings 
 
 
Debugging 
 
New Debugger 
. In the debuggingmode, you can switch from the single-process Debugger to thetwo-process Debuggerthroughthe menu option
Debugging 
 
 
Change.
 
Display-Modes for the Classic Debugger
When you start a program in the Debugger, there are various display modes that you can use.All of the display modes have the same structure. The top part of the screen displays an extractof the program source code. The bottom part displays more detailed information. The mostfrequently-used views are available using the following pushbuttons.Display Modes Available Using Pushbuttons

Activity (10)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
sunandoghosh liked this
eidqhaddad liked this
gmircha liked this
bogdan2303 liked this
s18238160 liked this
Di liked this
farhath81 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->