I am trying to debug a script that loops through a table of approximately 10,000 records. When I open the debugger and step through the script the debugger works extremely slowly. I have to wait for approximately one minute for each script step to execute and for the degugger to move to the next script step.
Here is another piece of information: in the middle of the script there is a call to a subscript. As soon as program execution enters the subscript all of a sudden the debugger is as responsive as I could hope but as soon as program execution returns to the calling script all of a sudden the debugger becomes incredibly sluggish again. Can anybody suggest what might be causing this?