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

watchpoints

Former Member
0 Likes
865

i want to learn debugging with the help of watchpoints

can u please provide me some details

7 REPLIES 7
Read only

Former Member
Read only

Former Member
0 Likes
795

Hi,

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.

Regards,

Satish

Read only

0 Likes
795

what is the exact purpose of watch points???

Read only

Former Member
0 Likes
795

Hi Frd

WATCHPOINT - Watchpoints allow you the option of monitoring the content of individual variables.

The Debugger stops as soon as the value of the monitored variable changes.

In addition, conditions can be specified. The Debugger also checks whether such a condition is fulfilled.

Check This Link:

http://help.sap.com/saphelp_nw70/helpdata/en/f1/792442db42e22ce10000000a1550b0/content.htm

Reward Me Points

By

Pari

Read only

Former Member
0 Likes
795

hi

Read only

Former Member
0 Likes
795

Hi,

1.Watchpoints allow you the option of monitoring the content of individual variables.

2. The Debugger stops as soon as the value of the monitored variable changes.

3. In addition, conditions can be specified. The Debugger also checks whether such a condition is fulfilled.

In the toolbar of the New Debugger, you will find the pushbutton Create Watchpoint . It brings you to the dialog box Create Watchpoint.

Using this function, you can enter the variable to be monitored.

All possible ABAP data structures are allowed here.

Reward If Helpfull,

Naresh.

Read only

Former Member
0 Likes
795

Hi,

If you are debugging your code, and say in a loop you have some 1000 entries.Now if you want to debug for the 500th entry, you can set a Watch Point giving Sy-tabix = 500 and activate your watch point.Now you can directly debug the 500th entry.

Rwd if helpful.

Thanks.