PDA

Click to See Complete Forum and Search --> : How do I go back one step/line of code?


Colleen
Dec 7th, 1999, 09:48 PM
I'm sure it's simple, I just don't know how to do it. I'm trying to find what's happening just before my code crashes. I can't seem to find it by putting in a break. Any clues? Thanks!

onerrorgoto
Dec 7th, 1999, 09:55 PM
Well
step thru the code using F8 or
On tools/options/general tab/errortrapping set to Break on all errors or
maybe setting some Watches on some specific values that you think is crashing your program and set them to break when value changes.
Hope this will help you
Good luck


------------------
On Error Goto Bed :0)
anders@zsystemdesign.se

MartinLiss
Dec 7th, 1999, 09:59 PM
First of all I going to assume you know which procedure you are crashing in. If you have an error routine in that procedure fine, but if you don't, add one by putting On Error GoTo MyErrorRoutine at the top of the code in that module, and the following at the bottomMyErrorRoutine:
ResumeOr just add the Resume line at the top of your error routine if you have one. Put a breakpoint on the Resume line and when the program reaches it click the Step Into button or press F8 and you will be taken to the offending code.

[This message has been edited by MartinLiss (edited 12-08-1999).]