2007 Sep 16 7:25 PM
WHERE AND HOW IS DEBUGGING USED ? PLEASE GUIDE ME WITH EXAMPLES.
REWARD POITS GUARENTEED !!
2007 Sep 16 9:10 PM
Where: Wherever its required.
How: <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm">Click Here to know about debugger</a>
Generally to trigger debugger enter the '/h' in the transaction bar.
2007 Sep 17 1:00 AM
Hi,
check these...
ABAP DEBUGGING
http://help.sap.com/saphelp_webas620/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
Debug Program scheduled Background
3 types update,normal and system debugging
check this for update debugging
If you set "Update Debbugging" you can debug the codes which works in update tusk.
SAP std often runs the routine (function or form) to update the database in update tusk mode, these routine start as soon as a commit work is done.
The commit is called at the end of the program, so you can't debug them by "normal debbugging" because it ends as soon as the program ends
or----
All the database updates are performed by the update work processes by calling the functions/subroutines in update tasks.
These tasks are executed after a commit work is reached in the application. By default you cannot debug these functions.
TO debug these u need to explicitly activate update debugging.
for system debugging check the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/5f0640555ae369e10000000a155106/content.htm
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.
BREAKPOINT
In the source code we set the Break-point there by clicking the stop button, the system will stop there when you execute the program.
Watchpoint
For watchpoints, we need to give some condition and when this condition is satisfied, program will stop
example : if you want to debug only
for matnr value 100 than set watch point
matnr = 100. when value reaches 100 than
program stops at that point.
more at
http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm
check these documents as well
here r some links for debugging...
Go through these threads for more information on debugging,
some more links .....
Introduction: http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
A PDF file to know knowledge about Debugging
Some more links:
http://www.sap-basis-abap.com/sapab002.htm
Debug Background Programs: http://www.sapdevelopment.co.uk/tips/debug/debug_backjob.htm
Debugger: http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
Cheers
VJ
2007 Sep 17 4:01 AM
1. when there is some error in our program and we need to find out what it is
2. to verify that our program is flowing in the right way (ie: calling the right FMs etc)
3. to research into the working of a particular standard SAP program
4. to check whether certain pieces of code are reached in the program (eg: putting a breakpoint in a user exit)
5. to see the whether the variables / tables are getting populated correctly at runtime
6. to change variables / tables at runtime
2007 Sep 17 4:27 AM
hai,
Debugging is an excellent tool used by an abaper. you have two questions
1. where is debugging used?
ans: If you find some abnormal behaviour in your output ,which is resultant of your program.To trace from where this abnormality starts,you can use this .
2. how debuggin is used?
ans:there are many ways
1.type '<b>/h</b>' and enter before you executing a report program, after your selection screen appeares.
2. type <b>break-point</b> or <b>break username</b> inside your code and activate.this needs to be written where you may predict that there can be a chance of error.
3. inside your program , after activating the code , you may put the cursor at a position and got to utilities> breakpoints>set/delete. After this you may execute your program.
After doing one of the above, you can navigate through your code, by F5,F6or F7.
Please try to get more details of debugging from some blog or some material.
hope you will try
bye.
2007 Sep 17 6:27 AM
Hi,
Suppose u have written a prog. and u r running it, as per ur view ur prog is right, but it is showing wrong values.
And u r not able to find the problem in coding.
Then u can use debuging, as in debuggin u can run ur prog line by line and can check the value of any declared variable and internal table.
Now by debugging u are able to find the mistake in ur coding if it is.
thanks
Dharmishta
Message was edited by:
Dharmishta Suryavanshi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |