2008 Aug 13 6:44 AM
Hi All,
I have one variable in one loop.Now i want to go to that variable
everytime it's value is negative.Now with breakpoint and watchpoints i can go to that place in code when it is becoming negative first time.
Any way in debugging where i can rach that place in code everytime the variable becomes negative.
Thanks in Advance,
Saket.
Hi All,
I have one variable in one loop.Now i want to go to that variable
everytime it's value is negative.Now with breakpoint and watchpoints i can go to that place in code when it is becoming negative first time.
Any way in debugging where i can rach that place in code everytime the variable becomes negative.
Thanks in Advance,
Saket.
2008 Aug 13 6:45 AM
2008 Aug 13 6:48 AM
suppose the variable u are talking abt is wf_var.
then in side the loop, or the portion to which u want to come during debugging..write the following..
if wf_var < 0.
break-point.
endif.
now evry time the value of wf_var is negative u ll go in to the code while debugging
2008 Aug 13 6:50 AM
Hi,
Iam not sure of the classical debugger, but if the debugger is new debugger then you can follow this steps:
1. Execute the program in debugging mode.
2. Scroll the program and keep the cursor at the place where you want to check.
3. Press Shift + F8.
With this the debugging point comes to the place where you kept the cursor by executing all the code present above the cursor.
Hope thsi will help.
Regards,
Swarna Munukoti.
2008 Aug 13 7:01 AM
Dear,
first check that itab on which u r puting loop.
and debugger activate on loop and chack the value in this internal table or whatever.
Thanks,
jaten
2008 Aug 13 7:15 AM
Hi Saket,
If you know how to use watchpoints you can reach every point in your code where the variable goes negative.
For this you have to create a watchpoint in classic debugger ( if u r in new ABAP debugger switch to classic from debugging menu) with condition your variable < 0, now whenever this variable goes negative the program will stop at that point in code.
Hope this solves your problem.
Thanks,
Hitesh
2008 Nov 11 5:28 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |