Bossie
New Member
Hi all,
is there a way to test (debug?) a loop to see if it doesn't go into an infinite loop?
Besides the obvious (make sure the logic in your algoritm is sound)...
The only way I found is to use 'stops' in your code (either by using the breakpoints or by using something like 'display a msgbox every 100th time you execute the loop')
Any other ideas?
Maybe there is a "preprogrammed debug procedure" to test loops?
If not, it would be an idea...
is there a way to test (debug?) a loop to see if it doesn't go into an infinite loop?
Besides the obvious (make sure the logic in your algoritm is sound)...
The only way I found is to use 'stops' in your code (either by using the breakpoints or by using something like 'display a msgbox every 100th time you execute the loop')
Any other ideas?
Maybe there is a "preprogrammed debug procedure" to test loops?
If not, it would be an idea...