Application Development 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: 

What is the utility of watch point and break point in ABAP DEBUGGING !

Former Member
0 Kudos

What is the utility of watch point and break point in ABAP DEBUGGING !

PLEASE TELL ME IN DETAILS AND IF POSSIBLE WITH SCREEN SHOTS !

5 REPLIES 5

Former Member
0 Kudos

Hi,

Breakpoints, Watchpoints, and Checkpoints

Summary

The standard Breakpoints tool is always located on the Breakpoints desktop. With this tool, you can manage breakpoints, watchpoints and checkpoints. In addition, you can monitor the current status of the different breakpoint types.

Detailed Description

Breakpoints

In the Breakpoints area, you will see a list of all the breakpoints set so far. If one of the breakpoints has just been reached, this is marked with a yellow arrow. The visibility (Debugger, session, user) and type (line, ABAP command, …) is displayed for each breakpoint.

If you double click the Navigation() column, the system will display the breakpoint in the respective source code.

The visibility of a breakpoint can be changed through the dropdown list. To change the visibility of several breakpoints, mark them and select the pushbutton Save as Session Breakpoint or Save as User Breakpoint.

You can change the visibility of all Debugger breakpoints using the menu path Breakpoints-> Save Debugger BPs as -> ....

In addition, you have functions for creating, changing, activating and deactivating breakpoints at your disposal.

Watchpoints

In the Watchpoints area, you will see a list of all the watchpoints set so far. The watchpoint last set is highlighted with a yellow arrow.

For each watchpoint you will see not only the current value but the value before the last changed. (Technically speaking, each time you create the watchpoint and each time the watchpoint variable is changed, a clone of this variable is created.)

In this way, you can always determine what changes have been made to the monitored variable. For complicated data structures, such as internal tables or structures, select the pushbutton „Compare Variables“( ) and choose the Diff tool to compare the old and new variable values.

In addition, you have functions for creating, changing, activating and deactivating watchpoints at your disposal.

Checkpoints

In addition, you can edit conditional and unconditional checkpoints using the Breakpoints tool. This function is provided in the new Debugger only. Conditional checkpoints are set first in the source code using the ASSERTstatement; unconditional checkpoints are set using the BREAK-POINT statement. These have the effect that programs will be continued only if a preset condition is fulfilled. In the following window, these checkpoints can be searched for, activated, or deactivated.

regards,

vasavi.

reward if it is helpful.

radhushankar
Participant
0 Kudos

Hi

Break points are commonly used to stop the program flow at a particular point..once u made the break point the syatem flow will get stopped at the particular point and we can see how the system is executing the codes.and we can check whether the field are getting filled with values or not ,and we can set at a max of 30 breakpoints.

user specific break point: if u want to make a user specific break point. for example if the user name is arun means make a manual break point like this break arun.

the main difference between break point and watch point is, watch point will not get invoked untill or unlesss the field value got changed.

Thanks in advance

arun.j

Former Member
0 Kudos

HI

break-point- stops the flow of program at defined

point for debug purpose.

watch-point- use to set for particular value

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.

plzz reward if useful..

Former Member
0 Kudos

Former Member
0 Kudos

Hi,

Breakpoints, Watchpoints, and Checkpoints

Summary

The standard Breakpoints tool is always located on the Breakpoints desktop. With this tool, you can manage breakpoints, watchpoints and checkpoints. In addition, you can monitor the current status of the different breakpoint types.

Detailed Description

Breakpoints

In the Breakpoints area, you will see a list of all the breakpoints set so far. If one of the breakpoints has just been reached, this is marked with a yellow arrow. The visibility (Debugger, session, user) and type (line, ABAP command, …) is displayed for each breakpoint.

If you double click the Navigation() column, the system will display the breakpoint in the respective source code.

The visibility of a breakpoint can be changed through the dropdown list. To change the visibility of several breakpoints, mark them and select the pushbutton Save as Session Breakpoint or Save as User Breakpoint.

You can change the visibility of all Debugger breakpoints using the menu path Breakpoints-> Save Debugger BPs as -> ....

In addition, you have functions for creating, changing, activating and deactivating breakpoints at your disposal.

Watchpoints

In the Watchpoints area, you will see a list of all the watchpoints set so far. The watchpoint last set is highlighted with a yellow arrow.

For each watchpoint you will see not only the current value but the value before the last changed. (Technically speaking, each time you create the watchpoint and each time the watchpoint variable is changed, a clone of this variable is created.)

In this way, you can always determine what changes have been made to the monitored variable. For complicated data structures, such as internal tables or structures, select the pushbutton „Compare Variables“( ) and choose the Diff tool to compare the old and new variable values.

In addition, you have functions for creating, changing, activating and deactivating watchpoints at your disposal.

Checkpoints

In addition, you can edit conditional and unconditional checkpoints using the Breakpoints tool. This function is provided in the new Debugger only. Conditional checkpoints are set first in the source code using the ASSERTstatement; unconditional checkpoints are set using the BREAK-POINT statement. These have the effect that programs will be continued only if a preset condition is fulfilled. In the following window, these checkpoints can be searched for, activated, or deactivated.

Pls refer to :

http://help.sap.com/saphelp_nw70/helpdata/en/e2/5f5a42ed221253e10000000a155106/frameset.htm

Regards,

Renjith Michael.