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

Breakpoints and watchpoints

Former Member
0 Likes
1,440

What is the diffrence between watchpoint and breakpoint?

How many watchpoints and breakpoints can be used in each program?

Types of watchpoints and breakpoints?

What is the diffrence between watchpoint and breakpoint?

How many watchpoints and breakpoints can be used in each program?

Types of watchpoints and breakpoints?

12 REPLIES 12
Read only

anversha_s
Active Contributor
0 Likes
1,350

hi,

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

For watchpoints, we need to give some condition and when this condition is satisfied, program will stop

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.

<b>more at

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

Regards

Anver

Read only

Former Member
0 Likes
1,350

Hi,

Difference betn break point and watch point,

Break points can be set before the program is executed and while in execution ,

Watch points are set only at the time of execution,

Break points helps u to stop at a certain point while executing while watchpoint

when added helps u to moniot he values for a certain field during the whole

program.

Regards,

Vaibhav B Gawali.

Read only

Former Member
0 Likes
1,350

When you put a breakpoint in a particular line of source code, while execution, program stops here.

we can set the BREAK POINT inside the code.

when the pgms reaches there, the pgm will stop.

no condition check is possible

Static breakpoints - you can use statement BREAK-POINT or use BREAK <user>

Dynamic breakpoint - put cursor on the statement where you need to put breakpoint and press the STOP Button.

For watchpoints, we need to give some condition and when this condition is satisfied, program will stop

Start debugging '/H'.

In the debugging screen press the create watch point button in the application tool bar..

In the program give the program name..

in the field give the field name.

In the relational operator given '=' In the comp. field/value give the value ..

Read only

0 Likes
1,350

How many dynamic breakpoints can I set in a program??

Read only

0 Likes
1,350

you can keep 30 dynamic breakpoints at a time.

Read only

0 Likes
1,350

Other people are saying there is no limit of setting dynamic brkpoints...And this answer says max 30 brkpoints can be set. Which one is correct?

Read only

0 Likes
1,350

hello anurita,

If you are confused, juz try it in one sample program and you will be convinced.

By the way, please reward helpful answers!!

Read only

0 Likes
1,350

hi anurita,

please make it a practice to reward helpful answers!!

Read only

Former Member
0 Likes
1,350

Hi anurita,

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,350

hi anu,

  • Break point is one which helps us in a step by step execution..

It is specified once the code is activated ...i

It is given before execution..

It cannot be given in flow logic...

U can have as many break points u want but its better u ckeep it where u want

the check to be done.

In break point u have to use F5 for step by step execution F6 for execution from

break point to nreak point and F8 to go to result...

  • Watch point is one which we specify in debug mode..

It is also a break point but it is done for a specific value..

like break point any no of watch point can be kept..

While creating a watch point it will ask for the field and relational operator ..

regards,

Rajkumar.G.

Read only

Former Member
0 Likes
1,350

hey anu,

dynamically u can keep break points by just right clicking at the point where u want it..

here also there is no criteria u can have as many u want.. but its unnecessary because u can use F5 instead of keeping further breakpoints..

Using F5 u can go check execution at each and every level..

regards,

Rajkumar.G.

Read only

Former Member
0 Likes
1,350

Hi ,

Watch points are kept so that if a set conditions are satisfied .

Break point are kept to find the flow of the program from some point where necessary .

It is advisable to use break-username .Break-point stops any other user using that transation .