Debugging an Application

To debug a Visual Basic application, you basically need to perform two steps:

1. Enable the Debug configuration in the compile options.

2. Press F5 to start debugging. Visual Studio runs your application and attaches an instance of the debugger to the application.

Because the Visual Studio debugger needs the debug symbols in order 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, you can click the Start button on the Visual Studio standard toolbar. If the Debug configuration is selected, this action does the same thing as pressing F5. If the Release configuration is selected, selecting ...

Get Visual Basic 2015 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.