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

Debugging inside a loop

Former Member
0 Likes
11,512

Hi,

In a loop I am having 250 record ( eg : yr 2005/02 to 2013/08 ) .I am getting error in the year 2013 ( from 2013/01 to 2013/08) . Only from 2013 i need to debug instead going all the 200 records. How can i debug only the selected record(2013) in my loop while debugging.

1 ACCEPTED SOLUTION
Read only

former_member202818
Active Contributor
0 Likes
5,936

Hi Meenakshi,

Use watch point, with the free condition, date(4) = '2013'.

Press enter. Then F8, each time when the condition satisfies the control will stop at the particular line.

Or, suppose you want to set this condition for a break point... follow this..

Regards

Sreekanth

7 REPLIES 7
Read only

Former Member
0 Likes
5,936

Hi

Set a watchpoint for year (I don't know the name of the variable) = 2013

Max

Read only

RaymondGiuseppi
Active Contributor
0 Likes
5,936

Look at online help for New Debugger, Control, Watchpoints


Regards,

Raymond

Read only

Former Member
0 Likes
5,936

Hi Meenakshi,

You can create a watch point for variable SY-TABIX for respective internal table.

Cheers,

Varun Sahu

Read only

former_member202818
Active Contributor
0 Likes
5,937

Hi Meenakshi,

Use watch point, with the free condition, date(4) = '2013'.

Press enter. Then F8, each time when the condition satisfies the control will stop at the particular line.

Or, suppose you want to set this condition for a break point... follow this..

Regards

Sreekanth

Read only

jitendra_it
Active Contributor
0 Likes
5,936

Hello,

Once you set Breaking Point inside a loop. Go to Break./Watchpoints tab , enter the number of iterations in Skip column section for which control should not halt.

Now control will directly jump to next one(Skip + 1) and halt there once you press F8.

Read only

Former Member
0 Likes
5,936

HI Meenakshi,

  The way sreekanth told is correct please try in same manner.

Read only

Former Member
0 Likes
5,936

HI,

If you know the number of entries before the line desired in internal table, you can skip those number of lines by going to break/watchpoint tab and keep a breakpoint inside your loop. So it stops for the iteration skipping the number of line mentioned.

If you do not know the number of lines before your desired line, create a watch point with condition where you can specify a value for a variable and cotrol will be stopped once that variable is populated with the value specified.