Breakpoints Not Breaking

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RLN

    Breakpoints Not Breaking


    I set a breakpoint and Access does not stop and show the code windoe for
    me to step through code.

    Here are three lines at the beginning of a button click event:

    - MsgBox "RLNTEST-made it to here 1"
    - lngLooper = lngLooper + 1
    - MsgBox "RLNTEST-made it to here 2"


    The breakpoint is on the 'lngLooper' line.
    Instead, both msgboxes are displayed and the code keeps right on going
    and I cannot debug my error.

    What setting in the editor is not correct?
    At Tools/Options, "Error Trapping" is set to "Break in Class module".
    (all checkboxes in the "Editor" tab are checked)

    What am I missing so that the app stops when I set a breakpoint?


    *** Sent via Developersdex http://www.developersdex.com ***
  • Allen Browne

    #2
    Re: Breakpoints Not Breaking

    Does it work if you try
    Break on Unhandled Errors
    ?

    If that still doesn't work, try a decompile.
    Step 4 as suggested here:
    Techniques for recovering and repairing a Microsoft Access database


    --
    Allen Browne - Microsoft MVP. Perth, Western Australia
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "RLN" <nospamrln@devd ex.comwrote in message
    news:1215636548 _19622@news.new sfeeds.com...
    >
    I set a breakpoint and Access does not stop and show the code windoe for
    me to step through code.
    >
    Here are three lines at the beginning of a button click event:
    >
    - MsgBox "RLNTEST-made it to here 1"
    - lngLooper = lngLooper + 1
    - MsgBox "RLNTEST-made it to here 2"
    >
    >
    The breakpoint is on the 'lngLooper' line.
    Instead, both msgboxes are displayed and the code keeps right on going
    and I cannot debug my error.
    >
    What setting in the editor is not correct?
    At Tools/Options, "Error Trapping" is set to "Break in Class module".
    (all checkboxes in the "Editor" tab are checked)
    >
    What am I missing so that the app stops when I set a breakpoint?

    Comment

    Working...