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

End Infinite Loop?

Former Member
0 Likes
3,476

Hi all,

There is a custom program that another end user is running. For a small batch of records, the program runs as expected. However, when querying for all records the program does not end. My theory is there is a condition which is causing an infinite loop. Is there a way to stop the program and debug it while it's in this loop? There are thousands of records so I don't want to start from the beginning to debug it.

Helpful responses will be awarded points.

Thanks in advance!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,729

From SM50, place your cursor on the process in question and go to Program/Mode->Program->Debugging.

4 REPLIES 4
Read only

Former Member
0 Likes
1,730

From SM50, place your cursor on the process in question and go to Program/Mode->Program->Debugging.

Read only

Former Member
0 Likes
1,729

Hi,

Goto SM50..select the process..

Then in the menu..

Program/session -> program -> debugging..

It will go to the debugging mode..

Thanks,

Naren

Read only

Former Member
0 Likes
1,729

Do as the others have suggested. I'm betting that you won't find an infinite loop; instead you'll find nested loops over two or more large tables.

Rob

Read only

TuncayKaraca
Active Contributor
0 Likes
1,729

John,

When you are suspicious about infinite loop for this program. Go to <b>SM50</b> and Choose <b>Program/Session - Debugging</b>. It will jump to program.