Application Development 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: 

how to use watch point?

Former Member
0 Kudos

Hi,

Can you let me know how to use the watch point and when it should be used?

regards,

7 REPLIES 7

Former Member
0 Kudos

Refer to these related threads

Former Member
0 Kudos

Hi

When you are in debugging mode you can create Watchpoints on Variable.

The execution will stop at the step where the value of the variable changes.

This helps in monitoring the values of a particular variable during the execution of the program and find the bug.

Ask again if not clear.

Vijai

Raward if useful

Former Member
0 Kudos

u use this while debugging

create a watch point for any of ur variables or u want to know when the system reaches a particular stmt.. say call function.

if u create for a variable and u want system to alert u when the value of that variable reaches/changes to some X.if u dont specify any value for it, then when ever there is a change in that variable... it shall alert u also.

hope this is help ful

reward if helpful

tx

kiran

former_member404244
Active Contributor
0 Kudos

Former Member
0 Kudos

watch points is used to debug when a variable become a specific value.

u can create watch point in debugger, give the variable name, and value. then the control will go to the specific area when tht variable get the specified value

alex_m
Active Contributor
0 Kudos

In debuggoing mode Breakpoint-->Create watchpoint, here u select the program name and the changing variable. If you want to watch the point where the variable value got changed, this case u go for watch point.

Former Member
0 Kudos

Hi, Welcome to SDN...

There two types advantage if you use watch point properly.

1. if you run sap standard transactions ,some times we get error message ,if you want to debug the complete program ( it may take much time ) ,i mean you want to know where the message is coming.

even you have one more option like double click on message ->it gives message id and message number,In se91 -> you can choose where used list and it shows program name ,but some time it will not show ( I mean dynamic message ).

run the transaction -> /h -> it will go debugging. now create watch point as like

variable as message id and value mesage number,it will stop exactly there.

2. some times you get wrong values on only partcular field ,on few columns ,you want to see the exact select query on that condition,then create watch point

Reward points if it is helpful..

Regards,

Omkar.