Dynamically modify/instrument code in a module at design time
Posted on 2006-05-22
Hello VB/VBA experts,
Having futzed around with coding some stuff in Access VBA, I find that the debugging/logging functions are inadequate. I have written a few public routines that help figure out what went wrong by capturing my entry & exit events and a few other items. The problem is maintaining the code instrumentation as I add, delete and restructure the program code itself.
What I would like to be able to do, while running the IDE, is to be able to execute a piece of code that can update the modules of the project to maintain the code instrumenation.
Surely there is a way to do this?
Where would I look for examples? I will increase points as appropriate if this question gets into some gory details and/or significant code examples.