‎2006 Nov 07 9:56 PM
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!
‎2006 Nov 07 9:57 PM
From SM50, place your cursor on the process in question and go to Program/Mode->Program->Debugging.
‎2006 Nov 07 9:57 PM
From SM50, place your cursor on the process in question and go to Program/Mode->Program->Debugging.
‎2006 Nov 07 9:58 PM
Hi,
Goto SM50..select the process..
Then in the menu..
Program/session -> program -> debugging..
It will go to the debugging mode..
Thanks,
Naren
‎2006 Nov 07 10:01 PM
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
‎2006 Nov 07 10:02 PM
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.