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

Break points

Former Member
0 Likes
910

1.What is the difference between a breakpoint and a watch point?

2.How many break points and watch points can u set in a single program?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
877

Hi,

Break points:

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.

Watch Points:

Like a breakpoint, a watchpoint 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.

Regards,

Murali<b></b>

7 REPLIES 7
Read only

ferry_lianto
Active Contributor
0 Likes
877

Hi,

Breakpoints are where you want to stop in the code on a specific statement. Watchpoints are used to stop the processing when a variable reaches a certain condition, for example, you can set a watch point on a internal table field to have a certain value, then the debugger will stop when it hits that record in the internal table.

If you see the debugging screen it can display only 30 breakpoints but as such there is no limit of the number of breakpoints.

Check the BREAKPOINTS tab in the debugging screen. It can only show 30 of them.

Dynamic Breakpoints

You can set up to 30 dynamic breakpoints without changing the program code. Dynamic breakpoints can be set either in the ABAP Editor or directly in the Debugger.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
877

Break point - you can use this one complete program..

Watch Point - it is field level.

each program you can set up - 30 Break points.

watch point there is no limit.

watch points example - suppose you have internal table- internal table has two fields like order no and material no.

if you want see partcular record ,then create watch point.

Reward Points if it is useful

Thanks

Seshu

Read only

Former Member
0 Likes
877

Hi,

check this one...

Read only

Former Member
0 Likes
877

Hi,

In debugging of Program, we use Break points and watch points.

We can set soft break points in particular statement of program.

During execution, it will stop there and we can see the flow from there.

we can set watch points, to stop the program when Particular condition is reached in the statement.

for ex : IF V_COUNT < 1000.

-


ENDIF.

we can set the watch point V_COUNT = 580.During execution, it will stop when V_count reaches value 580. there we can see the flow.

Pl.refer following links for further information.

help.sap.com/saphelp_nw2004s/helpdata/en/c6/617cbee68c11d2b2ab080009b43351/content.htm

Reward, if useful.

Thanks,

USR

Read only

Former Member
0 Likes
877

Hi krishna

Apart from being able to execute an ABAP program in the Debugger, you can also start the Debugger call by the choosing 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 Debugger is activated when the program reaches this point.

There is also a special kind of breakpoint called a watchpoint. When you use watchpoints, the Debugger is not activated until the contents of a particular field change.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.

about >30 break points and watch points can be created in the report.

REWARD IT PLEASE...!!

Message was edited by:

asha banu

Read only

Former Member
0 Likes
878

Hi,

Break points:

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.

Watch Points:

Like a breakpoint, a watchpoint 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.

Regards,

Murali<b></b>

Read only

Former Member
0 Likes
877

Durin Debugging we use break points ,watch points.If we set a break point the debugger will stop the debugging there and it will not further proceed.

We can set upto 30 break points.

Watch points r at the field level.It will not stop the debugger.

During debugging it is always useful to set the break points whereever we have doubt in our code so that it gives the exact information.