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

debugging

Former Member
0 Likes
1,058

tell me pls

1.what is wathcpoints and breakpoints

2.what is the maximum no of watch & break points can be used in a abap program

7 REPLIES 7
Read only

Former Member
0 Likes
1,034

Hi Pandu,

Watchpoint: when ever a particular value is assigned to particural variable you want the program to wait for the analysis/ checking.

Breakpoint: Stop the execution of the program when ever the control come to the breakpoint position.

Regards,

Satya

Read only

Former Member
0 Likes
1,034

Hi..

Breakpoint is used to stop ur program at a particular point while debugging...

eg u can set breakpoint at perform...

whereas watchpoint is something...where u can specify some condition..when that is reached..program logic stops there..

eg..your are running a loop...and one of the field is Sales Order VBELN...

u can set a watchpoint such that...when the field (work area ) in the loop reaches value.. 1000 ..

Suppose ur internal table has Orders : from 500 to 1500

ur program will stop for the loop where order field has value 1000 sy-tabix 500 in this case..

hope this helps..

Praveen .

Read only

Former Member
0 Likes
1,034

Hi,

Watchpoints can be set to view if a particular variable has achieved a value while debugging.e.g. say u create a watchpoint that variable a contains 10.

Then ur debugging will stop at the point where a will achieve the value 10.

Breakpoint : Wherever u set a breakpoint, the processing will stop there for debugging.

We can have at most 30 breakpoints in a single program.

Regards,

Himanshu

Read only

0 Likes
1,034
Read only

Former Member
0 Likes
1,034

hi,

breakpoint: breakpoint is a singnal in a line of code that tells the abap processor to interrupt the program at the client and start the debugger.

we can display up to 30 breakpoints.

watchpoints: we can set a watch point for a field or structure , so that the program is interupeter when ever the value of that field or structure changes.

we can display up to 5 watchpoints.

Read only

former_member196299
Active Contributor
0 Likes
1,034

hi ,

<B>Watch points </B>:

Watch point is used while debuging , if u want to stop at a particular value of a field.

Watchpoint is used when you don't know the exact location where you need to stop the program but when you know that a particular varaible reaches a value.

eg: when you want to stop at a point when count becomes 100, then you can keep a watchpoint.Break point is used when you know the location of the statement in the program where you wan't to stop the control.

Typically there is no limit at all.(may be some unrealistically high number).

Typically there is no limit at all.(may be some unrealistically high number).

<B>Break points </B>

Break point is what we stop the program at a particular point in the program.

The BREAK-POINT is a debugging aid. When you run a program normally, it is interrupted at the statement, and the system automatically starts the debugger, allowing you to display the contents of any fields in the program and check how the program continues.

If the program is running in the background or in an update task, the system generates a Syslog message.

I hope this answers your querries ...

Do not forget to reward points for helpful answers ..

Thanks

Ranjita

null

Read only

Former Member
0 Likes
1,034

HI

good

1->

http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/792442db42e22ce10000000a1550b0/content.htm

2->As per your requirement,there is no such restrictions.

thanks

mrutyun^