‎2007 Jun 22 9:58 PM
Hi Experts,
Pls. clarify, the Uses/How works the Watch Points in Debugging?
ThanQ.
Message was edited by:
Srikhar
‎2007 Jun 22 10:09 PM
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
‎2007 Jun 22 10:02 PM
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.
‎2007 Jun 22 10:09 PM
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
‎2007 Jun 22 10:09 PM
check these good links for the same
Setting Watchpoints
http://help.sap.com/saphelp_erp2005/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/frameset.htm
Changing Watchpoints
http://help.sap.com/saphelp_erp2005/helpdata/en/c6/617ce2e68c11d2b2ab080009b43351/frameset.htm