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

Watchpoint Vs breakpoint

Former Member
0 Likes
7,347

Hi Friends,

Can you tell me the difference between Watchpoint and Breakpoint.

Thanks.

1 ACCEPTED SOLUTION
Read only

ibrahim_u
Active Participant
0 Likes
1,875

Breakpoint is that you specified a point a row of program to debug.

Watchpoint is that you specified a condition to debug.

ibrahim

Hi Friends,

Can you tell me the difference between Watchpoint and Breakpoint.

Thanks.

6 REPLIES 6
Read only

ibrahim_u
Active Participant
0 Likes
1,876

Breakpoint is that you specified a point a row of program to debug.

Watchpoint is that you specified a condition to debug.

ibrahim

Read only

Former Member
0 Likes
1,875

Normally you put a break-point in a program for the debugger to stop at certain line and from there you create a watch-point to stop when a certain condition is met.

hith

Sunil Achyut

Read only

Former Member
0 Likes
1,875

Hi radhika,

1. Break Point.

At particular LINE of SOURCE CODE,

the system will STOP there.

2. Watch Point.

(For this, we have to give some

VARIABLE NAME & VARIABLE VALUE - with relational operator)

When this CONDITION gets satisfied,

(anywhere during the execution of the program),

the system will AUTOMATICALLY STOP THERE.

(EG when the value of matnr reaches the specified value)

That is the purpose of WATCHPOINT

(the system will WATCH it, like a dog)

regards,

amit m.

Read only

Former Member
0 Likes
1,875

Hi Radhika,

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

<b>http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm</b>

Thanks

Vikranth Khimavath

Read only

Former Member
0 Likes
1,875

HI

GOOD

Breakpoints

You can set the following types of breakpoints:

static

Set directly into a program's code with the Editor. Static breakpoints are generally user-independent. You can also set user-dependent static points.

dynamic

Set from within the ABAP/4 Editor or the Debugger. Dynamic breakpoints are invisible when you display the program's code in the Editor

watchpoints

Set from within the Debugger. Watchpoints are field-specific. You use a watchpoint to observe changes to a particular field. The Debugger interrupts the program when the field's contents change.You can only set one watchpoint at a time.

key word or event breakpoints

Set from within the Debugger. The Debugger interrupts the program when the ABAP/4 runtime processor comes across the specified keyword or event in the program's code.

Dynamic breakpoints are user-specific. If you want to interrupt a program when you execute it but not when others are running it, then you should set dynamic breakpoints. Dynamic breakpoints are more flexible than static breakpoints, because they can be removed or deactivated during runtime. You can set dynamic breakpoints without making any changes to your program's code.

For additional information on breakpoints see Help Basis System ABAP/4 Development Workbench ABAP/4 Workbench Tools Debugging Tools

http://sap.mis.cmich.edu/sap-abap/abap03/sld020.htm

THANKS

MRUTYUN

Read only

Former Member
0 Likes
1,875

solved