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 diff b/n breakpoint and watch point

Former Member
0 Kudos

hi

experts can u help me for this

7 REPLIES 7

RichHeilman
Developer Advocate
Developer Advocate

Break-point is a hard break in the code processing, whereever you have a breakpoint the execution will stop and put in debug mode. A watchpoint is used when you want to stop processing when some variable is changed to a certain value.

Regards,

Rich Heilman

Former Member
0 Kudos

Break-points - When you execute a particualr program the debugger will stop at these positions of the code.

You can create them in the program ( Menu >> Utilities>>Break Points. ) or you can set them while in the debugging mode ( from the debugger ) or you can write 'BREAK-POINT' in the code. The debugger willl stop here.

WatchPoints - You can create them from the debugger only. For a particular variable you can ask the debugger to stop when the value of a particular variable reaches some value.

hope it helps.

Former Member
0 Kudos

hi,

breakpoint: eg: if we fix the Break point at line no 10.

while execution, the program get stops at line no 10.

from then we can debugg the program manually using F5, F6, F7

watch point: used to debugg the program using the data.

eg: if we fix the watch point for the filed amount.

we are fixing the amount as 100.

now the program gets stop only the amount value is equal to 100.

till that its keep on executing.

reward if its useful

-vijay

Former Member
0 Kudos

<b>BreakPoints</b>

Apart from direct execution of an ABAP program in the Debugger, it is also possible to start the Debugger call by the exact setting of a breakpoint. This is achieved by setting one or more of these breakpoints in the program. A breakpoint is a signal at a particular point in the program that tells the ABAP runtime processor to interrupt processing and start the Debugger. The program runs normally until the breakpoint is reached.

There is also a <b>special kind of breakpoint called a watchpoint.</b> When you use watchpoints, the Debugger is not activated until the contents of a particular field change.

Like a breakpoint, a <b>Watchpoint</b> is an indicator in a program that tells the ABAP runtime processor to interrupt the program at a particular point. Unlike breakpoints, however, watchpoints are not activated until the contents of a specified field change. Watchpoints, like dynamic breakpoints, are user-specific, and so do not affect other users running the same program. You can only define watchpoints in the Debugger.

You set watchpoints in the Debugger to monitor the contents of specific fields. They inform you when the value of a field changes. When the value changes, the Debugger interrupts the program.

For more Information:

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

Reward if the Info is useful,

Ankur

Former Member
0 Kudos

Hello,

Break point:

Can be switched on to debug mode by predefining the point where the program code needs to be viewed from at runtime or dynamically at any stage using '/H'

using : /h(dynamic) or BREAK-POINT(in the code) --> enters debug mode

Watch point

Is accessed inside the debugging mode

When you are in debugging mode you can create Watchpoints on Variable.

The execution will stop at the step where the value of the variable changes.

This helps in monitoring the values of a particular variable during the execution of the program and find the bug.

pls check the following link for more info on break points and watch points

http://help.sap.com/saphelp_46c/helpdata/es/c6/617cdce68c11d2b2ab080009b43351/frameset.htm

Regards

Byju

Former Member
0 Kudos

Hi Ramesh

breakpoints are used within the program static or dynamic ,

after putting a breakpoint then it will come to debugger then here u can insert watchpoints for variable or fields if the value of field reaches some vealu that u r defined here then the program will stop execution

reward for all helpful ans's

kiran.M

0 Kudos

Hi,

Breakpoint

breakpoint is an area in an abap program where the execution turns into debugging mode.

Watchpoint

If there is a large number of rows into an internal table and we need to debug a particular row of an internal table in this case we can set the watchpoint for the particular value of a field or variable.

Regards,

Manjunath M