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

Debugging

Former Member
0 Likes
1,077

hi all,

i want to know about debugging,wat is its use,hou it is done,step wise procedure for this.

can any body help me in this regard.

thanks in advance.

9 REPLIES 9
Read only

former_member508729
Active Participant
0 Likes
1,034

Hi Siva

just check following thread

Regards

Ashutosh

Reward points if helpful

Read only

Former Member
0 Likes
1,034

Have a look at below link.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0">Debugger</a>

I hope it helps.

Best Regards,

Vibha

<b>*Please mark all the helpful answers</b>

Read only

anversha_s
Active Contributor
0 Likes
1,034

hi,

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

For debugging tutorial:

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

http://www.sapdevelopment.co.uk/tips/debug/debughome.htm

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

System Debugging

If you set this option, the Debugger is also activated for system programs (programs with status S in their program attributes). When you save breakpoints, the System Debugging setting is also saved.

Update Debugging

Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger. These function modules are therefore not included in debugging. Only if you select the Update Debugging option can you display and debug them after the COMMIT WORK.

Normal Debugging

Normal debugging is the one we do it by the normal dynamic break points or by /H or by using stattic break points.

You can switch to diffferent debuggin modes while processing.

Regards

Anver

Read only

Former Member
0 Likes
1,034

refer this link.

<a href="https://forums.sdn.sap.com/click.jspa?searchID=654407&messageID=2874805">https://forums.sdn.sap.com/click.jspa?searchID=654407&messageID=2874805</a>

<a href="https://forums.sdn.sap.com/click.jspa?searchID=654407&messageID=2901715">https://forums.sdn.sap.com/click.jspa?searchID=654407&messageID=2901715</a>

Read only

Former Member
0 Likes
1,034

Hi ,

Go through this thread.

http://help.sap.com/search/highlightContent.jsp

Regards,

Sunmit.

Read only

Former Member
0 Likes
1,034

abap debugger is the tool which is used to execute the program step by step and view/modify the results at runtine.

to debug the program go to program ->test->debugging.

or else you can set the breakpoint at some code and execute the program.

by executing the program you will view the abap debugger. here you can execute the program:-

step by step...f5

step by step(whole subroutine as aa single step)...f6

exectue upto the end of the function module...f7

execute upto end or upto break point....f8

Read only

vidya_gugnani
Product and Topic Expert
Product and Topic Expert
0 Likes
1,034

Debugging is useful when you have written some code and want to observe the behaviour of what exactly is happening at the various steps,what values are being passed to the variables,calls being made etc.

e.g you have a report which prints 10 values,however you see that only 8 are getting printed and want to know why the remaining two are missing or get incorrect values,debugging the code will help you identify the problem and fix it.

In ABAP context,you can set a session or external breakpoint in the ABAP workbench or you can set this manually in your code as:

SET-BREAKPOINT

It is advisable to set it only for your user name as others will hit this

ie. SET-BREAKPOINT <username>

If breakpoints are set as above and the report or transaction is run,the debugger is opened if the debugger hits the breakpoints you have set during execution.

Some of the frequently used shortcuts are F5(step into),F6(step out of execution of current call),F7(step out) and F8(execute).

Regards,

Vidya

Read only

Former Member
0 Likes
1,034

Hi

Go through these threads for more information on debugging,

1)

2)

3)

4)

-charitha

Read only

Former Member
0 Likes
1,034

hi,

while debugging we can see what each line in our code does and what are the value the variables contain at runtime, and its very useful to check the errors and rectify them and even the flow of program can be known.

u need to just enter /h b4 executing the program in the command line to start debugging and then go on pressing F5 to execute program line by line.

hope this will be helpful to u.

reward some points if satisfied.