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

Help in Debugging

Former Member
0 Likes
705

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.

6 REPLIES 6
Read only

Former Member
0 Likes
671

can you give the code ?

Read only

former_member195383
Active Contributor
0 Likes
671

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

Read only

former_member217544
Active Contributor
0 Likes
671

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.

Read only

Former Member
0 Likes
671

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

Read only

Former Member
0 Likes
671

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

Read only

Former Member
0 Likes
671

Thanks for all help.