11-14-2007 6:18 AM
What is Watch point, In Debugging Mode What is the use of Append and insert Tab
11-14-2007 6:24 AM
Hi
Watchpoints
Use
Features
Setting Watchpoints
Procedure
Greater than or equal
Greater than
You can use the Comparison field option to specify whether the comparison is to be carried out with a value that you specify or with the contents of another field. Depending on your choice from step 6, enter a value or a field for the comparison.
Result
Specifying Logical Links
Changing Watchpoints
Deleting Watchpoints
Memory Monitoring with Watchpoints
Example
Analyzing Source Code
Reward if usefull
11-14-2007 6:23 AM
Hi,
If you want to interrupt a program when the contents of a field or structure change, use a watchpoint. You can set up to five watchpoints, including watchpoints for strings.
debugger contains the watchpoint option in it..
A watchpoint can be either local or global. Local watchpoints are only valid in the specified program. Global watchpoints are valid in the specified program, and also in all the other programs it calls.
Procedure
To set a watchpoint, start the Debugger and proceed as follows:
1. Choose Breakpoint-> Create watchpoint or
the corresponding pushbutton.
The Create Watchpoint dialog box appears:
2. Decide whether you want to set a local or global watchpoint.
3. Enter the program and the name of the field for which you want to set the watchpoint. In the Program field, the name of the program currently running is always defaulted.
4. If you want your watchpoint to be activated each time the contents of the field change, the definition is now complete, and you can return to the Debugger by pressing ENTER .
5.To create a conditional watchpoint, that is only activated when a particular situation arises, choose one of the following relational operators.
Operator meaning
< Less than
> greater than
similarly <= , = , <> ,>=.
6. You can use the Comparison field option to specify whether the comparison is to be carried out with a value that you specify or with the contents of another field.
result
The system confirms the watchpoint and adds it to the list in the display. When you finish your debugging session, the watchpoint is automatically deleted unless you have explicitly saved it.
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
Regards,
Omkar.
11-14-2007 6:24 AM
Hi
Watchpoints
Use
Features
Setting Watchpoints
Procedure
Greater than or equal
Greater than
You can use the Comparison field option to specify whether the comparison is to be carried out with a value that you specify or with the contents of another field. Depending on your choice from step 6, enter a value or a field for the comparison.
Result
Specifying Logical Links
Changing Watchpoints
Deleting Watchpoints
Memory Monitoring with Watchpoints
Example
Analyzing Source Code
Reward if usefull
11-14-2007 6:25 AM
Watch point:
place cursor on where we want to create watch point and press on WATCH POINT.
then main use of this watch point is to see where the process is going on and to see the process of which you want to execute.
we can give ''n' no of watch points in a programs.
In debugging mode
append is used to update the existing record like any modifications.
insert is used to insert any new record to the internal table but it we be inserted at the end of the table contents.
11-14-2007 6:26 AM
Hi
The Insert and Append functions allow you to add a new line to an internal table. If you choose Append, the new line is added to the end of the table. If you choose Insert, you can add the new line at any position in the table. To insert a new line at the end of the table:
1. Choose Append.
2. Enter a value for the first field of the line.
3. Choose ENTER . The system adds a new line to the end of the table, containing the value that you entered for the first field.
4. Enter values in the remaining fields as described above.
If you want to add a line in the middle of the internal table, place the cursor on the line after which you want to insert it. Choose Insert, then follow the procedure described above from step 2.
<b>Reward if usefull</b>
11-14-2007 6:33 AM
Suppose you need to de-bug your source code many times and for each time you will repeat the same process so for avoiding that you can set watch-point in de-bug mode for you perticular condition or any perticular source code at which you need to concentrate so that while de-bugging it will directly come to that point or it won't miss that point to come as while by using normal de-bugging there is a chance of missing that point. So its always better to set watch-point while de-bugging.
Also INSERT and APPEND is used in de-bugging mode for following purpose. Suppose you are checking one internal table with some records in de-bug mode and for satisfying some sort of condition you want to add another record into that internal table so this can be done with the mentioned tabs. With INSERT you can insert the recors in between the existing records and with APPEND tab you can add record at the end of the internal table at run time.