Launch debugger only on error?

Hello,

Is there a way to launch the debugger only if the code hits an error? I’m attempting to debug someone else’s code and it’s taking a long time to step through everthing.

If the debugger would launch when it encounters an error, it would sure speed things up for me.

??

Thanks.

Bill

Subject: use breakpoints or stop

I don’t know of any way to do what you want, but if you have some idea where the problem is, add a breakpoint (using F9)or add a “STOP” in the code. You can press the Continue button and it will run until it gets to a STOP or breakpoint and then you can step through the code.

If you use error handlers, you can put a stop and then a resume next after it in the error handlers. I often do this to find the line immediately AFTER the line of code that caused the error. Prevents a lot of unnecessary stepping through code.

Subject: Almost

I assume you mean the Lotusscript debugger?

If so clear all the breakpoints and error-handling (on error goto…) and click the continue-button and you will get almost the desired result. (The debugger starts and it takes somewhat longer to debug but you don’t have to watch and interact making it way faster)

Regards Palle

Subject: Turns out the debugger was not able to help with my error

Yes, the LotusScript debugger.

The error was being thrown from a form field formula. So no matter how I stepped through the code, the offending syntax was not coming up.

Only after opening the form in the designer and sifting through the field formula was I able to deduce what the issue was.

Thanks.