Auto Debugging/Stop with Access 2003?

Y

Yin99

Any way to make Access stop (enter code debug) *anytime* it runs VBA
code? I have hundreds of modules with VB code, and I couldn't
possibly set a breakpoint at every entry point.


-Yin
 
C

Corey-g via AccessMonster.com

Yin,

I thought you could just hit <ctrl> Break(Pause) and that would open a dialog
window asking if you wanted to continue, end or debug...

HTH,

Corey
 
Y

Yin99

Yin,

I thought you could just hit <ctrl> Break(Pause) and that would open a dialog
window asking if you wanted to continue, end or debug...

HTH,

Corey

My main purpose is for reverse engineering the access database
application. Thus, whenever a form button is clicked (any event
trigger), I see what code its stopping in, and can step through code
back to form. Ideally, I could set Access into a "Global VBA Code
Debug Mode" so it just stops anytime entering code, but its looking
like thats not possible.
 
R

RD

My main purpose is for reverse engineering the access database
application. Thus, whenever a form button is clicked (any event
trigger), I see what code its stopping in, and can step through code
back to form. Ideally, I could set Access into a "Global VBA Code
Debug Mode" so it just stops anytime entering code, but its looking
like thats not possible.

AFAIK, that is correct, there is no way to just make it break for no reason.

If you're reverse engineering then the way to go *IS* to put a breakpoint on the
event handler for a control. Then you step through everything that happens
after that. I was once hired to document an old Access application that had
been developed by a contractor a few years before. One by one I put breakpoints
behind event handlers and finally figured out what the heck that thing was
doing.

Good luck.
RD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top