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

Watch Points?

Former Member
0 Likes
500

Hi Experts,

Pls. clarify, the Uses/How works the Watch Points in Debugging?

ThanQ.

Message was edited by:

Srikhar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

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

Thanks

Seshu

3 REPLIES 3
Read only

Former Member
0 Likes
473

https://forums.sdn.sap.com/click.jspa?searchID=3382034&messageID=3616071

Just to give you a brief idea:

You can create a watch point to check if a particular variable reaches a particular value during whole execution or not.

For ex.,

You have a count variable in the program and you want to debug the program only after its value reaches to 5 then you can create a watchpoint for that count variable and give the value 5. And then you execute the program and it will stop when the value becomes 5.

You can specify different conditions like greater than, less than etc.

If you do not specify any value for the watchpoint and just specify the variable name, it will stop whenever variable's value is changed.

Hope this helps.

You can search forum or SAP help for more details.

Read only

Former Member
0 Likes
474

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

Thanks

Seshu

Read only

Former Member