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 n breakpoint

Former Member
0 Likes
1,220

what is the defference between breakpoint and watchpoint

regards

sami

what is the defference between breakpoint and watchpoint

regards

sami

5 REPLIES 5
Read only

Former Member
0 Likes
994

Break Point:

If want the run the report from specific point in debugging mode u can set break point and execute the report or object,

u can set the break point either dynamically or statically.

BREAK-POINT { [ID group]

| { [log_text] [AT NEXT APPLICATION STATEMENT] } }.

Effect

This statement defines an unconditional checkpoint (breakpoint). Whenever the program reaches an active breakpoint during dialog processing, program execution is interrupted. The system then branches to the ABAP Debugger. Any inactive breakpoint is ignored and program execution is continued with the statement following BREAK-POINT.

Watch point:

when ever u want see the out put while excution the object u can see the using with watch point statement.

In addition check these links........

Regards,

Pavan

Read only

varma_narayana
Active Contributor
0 Likes
994

Hi..

Break-point is used to Halt the exectuion of Program at a particular statement.

Break point is not based on a Condition.

We can create up to 30 Break points.

Watch point is always a Condition on a Field. Eg SY-TABIX > 10.

Whenever the Condition satisfies then the System throws the message " Watch point reached".

We can create up to 10 WATCH points.

<b>Reward if Helpful</b>

Read only

Former Member
0 Likes
994

Hi,

the breakpoint stop at a definied place in the coding and the watchpoint stop if e.g. the field value changed.

Regards

Nicole

Read only

Former Member
0 Likes
994

Hi,

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

Regards,

Sankar

Read only

Former Member
0 Likes
994

Hi

reward if usefull

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.

Use

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.

Features

You can set up to five watchpoints in a program.
See also Setting Watchpoints.
You can also specify the conditions on which a watchpoint is to become active.
You can specify logical conditions between up to five conditional watchpoints.
See Specifying a Logical Expression.
You can define watchpoints as either local or global. If you define a global watchpoint, it is active in all called programs. Local watchpoints are only active in the specified program.
You can change and delete watchpoints.
See Changing Watchpoints.
You can use watchpoints to display changes to the references of strings, data and object references, and internal tables.
See Memory Monitoring with Watchpoints


If you want to interrupt a program when the contents of a field or structure change, use a watchpoint. You can set up to five watchpoints, including watchpoints for strings.

A watchpoint can be either local or global. Local watchpoints are only valid in the specified program. Global watchpoints are valid in the specified program, and also in all the other programs it calls.

Procedure

To set a watchpoint, start the Debugger and proceed as follows:

Choose Breakpoint ® Create watchpoint or the corresponding pushbutton. The Create Watchpoint dialog box appears:


Break Points

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 special kind of breakpoint called a watchpoint. When you use watchpoints, the Debugger is not activated until the contents of a particular field change. For further information, refer to Watchpoints.

Breakpoint Variants

The Debugger contains different breakpoint variants:

Static

The BREAK-POINT statement in an ABAP program. Static breakpoints are not normally user-specific. However, you can make them user-specific.

Directly-set

dynamic breakpoints

Can be set in the ABAP Editor or the Debugger. Dynamic breakpoints are always user-specific, and are deleted when you log off from the R/3 System.

Breakpoints

at statement

The Debugger stops the program directly before the specified statement is executed.

Breakpoints

at subroutine

The Debugger stops the program directly before the specified subroutine is called.

Breakpoint at function module

The Debugger stops the program directly before the specified function module is called.

Breakpoint at method

The Debugger stops the program directly before the specified method is called.

Breakpoints at system exceptions

The Debugger stops the program directly after a system exception, that is, after a runtime error has been intercepted.