Results 1 to 3 of 3

Thread: How do I go back one step/line of code?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Location
    Dublin, Ireland
    Posts
    2

    Post

    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!

  2. #2
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    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



  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,175

    Post

    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 bottom
    Code:
    MyErrorRoutine:
        Resume
    Or 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).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width