Additional Debugging Techniques
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The techniques discussed here can be used in conjunction with the tools discussed in the previous sections to give you an even more powerful arsenal for finding and fixing errors in your code.
In This Section
- Understanding Conditional Compilation
You can use conditional compilation to selectively include blocks of debugging code by testing for the value of a conditional compilation constant. - Using Assertions
You use assertions to test for certain conditions in your code. - Creating Custom Assertions
In some circumstances you might not want to break into your code each time an assertion fails.
Related Sections
- Debugging Code
Microsoft® Visual Basic® for Applications (VBA) provides several debugging tools that help analyze how code operates and help locate errors in your code. - VBA Debugging Tools
Microsoft® Visual Basic® for Applications (VBA) and the Visual Basic Editor contain many tools you can use to help debug your code. - Script Debugging Tools
The Microsoft Script Debugger provides a comprehensive debugging environment for working with both client- and server-side script in HTML pages and Active Server Pages (ASP).