Debugging an Application
To debug a Visual Basic application, you basically need to perform two steps:
• Enable the Debug configuration in the compile options.
• Press F5 to start debugging.
By pressing F5, Visual Studio runs your application and attaches an instance of the debugger to the application. Because the Visual Studio debugger needs the debug symbols to proceed, if you do not choose the Debug configuration, you cannot debug your applications. The instance of the debugger detaches when you shut down your application.
Tip
As an alternative to pressing F5, you can click the Start Debugging button on the Visual Studio standard toolbar.
The debugger monitors your application’s execution and notifies for runtime errors; it allows you to ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.