|
Debugging Tips for VBA, Access and Visual Basic DevelopersProvided by: Luke Chung, President of FMS, Inc.Access, VBA, and Visual Basic developers are blessed by a powerful code debugging environment. Learning its features will help you code better and faster, and simplify applications testing and maintenance. In addition to being able to change your code (within reason) while in the debugger, you have the immediate window, locals window, watch window, call stack and other resources under the View menu to help you debug and understand what your code is doing. Make sure you learn what these windows can do for you. As you examine your code line-by-line, here are some keystrokes every VB/VBA developer should use within the IDE: Keystroke Description - Shift-F2 Put the cursor on the variable, procedure, or property in question and press [Shift-F2] to see where it’s defined. You’ll jump directly to it. You can do this as often as you like to understand how your code works.
For more tips on debugging, read Luke Chung’s technical paper on Access VBA/VB Debugging Tips and Techniques. |