Friday, February 3, 2012

Watch point


Watchpoints to trace the error

If you are dealing with a big program . And suddenly , unexpectdly you encountered a error .First thing which will come in your mind is from where this error came.
If it is a big program its not easy to go line by line to findout where this occured . So simply jump into the place where this occured we can use watch point .
 Whenever you face this error just note down error number .
 in the above case error num is 518 .
now run the program and go to debugger.
There create a watchpoint for SY-MSGNO .
In condition entry write :
 SY-MSGNO = 518
now it will stop exactly where you encounter this error .....
Happy debugging ... 

No comments:

Post a Comment