Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to work with ABAP DEBUGGER

Former Member
0 Likes
1,263

helo experts can u please tell me how to work with ABAP debugger?the different uses of debugger?

helo experts can u please tell me how to work with ABAP debugger?the different uses of debugger?

8 REPLIES 8
Read only

Former Member
Read only

Former Member
0 Likes
1,157

/h- to put the program in debugging mode.

use break point in ur program to debug the code .when you will Execute your program the program will go to debugging mode.

on the top you can see diiferent button called Fields, table ,break points , watch points etc.

below the debugging screen you can see the rows names as field name ..

you can give any apporpriate varable or field or struct or internal table to know the data stored in it..

hence it keeps track of the program flow.

you can go through this url to know more about it.

http://www.sap-basis-abap.com/sapab002.htm

Read only

Former Member
0 Likes
1,157

Debugging is tool which we will se value during time ,

you can set break point diffrent ways :

/h,utilities debugging..

break point are two types :

Dynamic break point - when you see editor there should stop button,when you click on stop button,then it is dynamic break point.

Static break point - just write within code like break userid or break-point.

if you see within debugging ..

F5 - Step by step

F6 - to skip subroutines

F7- to skip Function module

f8 - to skip break point.

each we can set up max 30 break points..

watch point - watch point basically for paricular record,bu ysing break point you can set up particular record..

Reward Points if it is helpful

Thanks

Seshu

Read only

Former Member
0 Likes
1,157

Hi,

Refer This link you will get good idea, how to work with new debugger .

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cd12d590-0201-0010-80a6-c3cafeb6...

Jogdand M B

Read only

Former Member
0 Likes
1,157

hi,

go to se38->give ur program name-.execute->give /h at command prompt->execute->now debugging will start->

f5-used for line by line debugging

f6-used for directly executing function modules or performs i.e. control won't go into that block.

f7-run to cursor

f8-direct executing.

fileds: here we can check fild values.

click fileds option and double click on the filed or type the filen name beside filed

tables : here we can check the data in the internal table.

click tables option and double click on the internal table.

Break points:

if you want to debug a particulr part you can use this.

place the cursor at any perform click breakpoint or double click on that line.it will be set.

if /h from report statement it will debug,so for debugging from particular point we will use break points.use f7 to traverse between multiple break points.

Watch-points: In some cases we need to check the data populated in the internal table for eample if we want to check the data of internal table record belongs to 100th vendor we will create watch point for this goto->breakpoints->create watch points->give filed itab-lifnr->=->100.

debugging procedure:

Use '/H' in the command line and execute the report/program, so that it goes to debugging mode

2. keep a hard coded break point in the code like BREAK-POINT and it stops there.

3.From the program Menu, Keep the Soft Break-points and do the debugging.

see the links

Refer to this thread

http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm

Check these documents.

http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc

http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm

http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm

http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc

http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm

http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm

http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34

Look at the SAP help link below

http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm

Read only

Former Member
0 Likes
1,157

Hi Sagarika,

Debugger Locate the document in its SAP Library structure

The Debugger is a programming tool that you can use to execute ABAP programs, by line or by section. 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 for release levels up to and including 6.40 or debugging with the new Debugger, which is available for all releases after 6.40. The main differences between the classic and the new ABAP Debuggers are described below:

· The Structure linkClassic ABAP Debugger runs in the same roll area as the application to be analyzed (debuggee). It is therefore displayed in the same window as the application. However, this technology also has some restrictions. For example, some ABAP programs (such as conversion exist) cannot be analyzed in debug mode for technical reasons. However, the most significant restriction is that no ABAP technology can be used for designing the Debugger interface and it is therefore not possible to create a modern user interface.

  • The Structure linkNew ABAP Debugger, on the other hand, is executed in a separate external session (Debugger), while the application to be analyzed (debuggee) uses a second external session. With this technology, the user interface of the Debugger can be designed freely by ABAP means.

The new Debugger provides the user with a flexible interface that can be configured as required and 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 or structures. In this way, the user can design the Debugger interface according to his own individual requirements.

As of Release 6.40, you can select the debugging type as you wish by choosing the classic Debugger or the new Debugger in the ABAP Editor from the path Utilities ® Settings. It is also possible 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.

For NEW Debugger check out in this link

http://help.sap.com/saphelp_nw2004s/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm

Regards,

prasad

Read only

Former Member
0 Likes
1,157

One interesting option of the ABAP Debugger..

After entering the debugging session, goto

Breakpoint->Breakpoint At

menu option

This will give you options to set breakpoint at many locations, for example

Breakpoint at

statement, FM call, Method, etc..

Regards,

Basu.