No formal product support is available from Microsoft for this Beta product. For information about how to obtain support for a Beta release, see the documentation that is included with the Beta product files, or check the Web location from which you downloaded the release.
back to the top
- Microsoft Windows 2000 or Microsoft Windows XP
- Microsoft Visual Studio .NET or Microsoft Visual Studio 2005
For additional information about using the Trace class and the Debug class in Visual Basic .NET, click the following article number to view the article in the Microsoft Knowledge Base:
To debug a Visual Basic .NET application, follow these steps:
- Open Microsoft Visual Studio .NET or Microsoft Visual Studio 2005.
- On the Tools menu, click Debug Processes.
- In the Processes dialog box, click to select the program that you want to attach from the Available Processes list. If the program you want to debug is running on another computer, you must first click to select the remote computer.
For more information about selecting a remote computer, visit the following MSDN Web site:
Selecting a Remote Machine
- Click Attach.
- In the Attach to Process dialog box, make sure the appropriate program type is selected in Choose the program types that you want to debug. For example, to debug a Visual Basic .NET or Visual Basic 2005 application, click to select Common Language Runtime.
- Click OK.
Processes dialog box is displayed.
- In the When debugging is stopped list, click to select Detach from this process when you want the program to detach from the process without quitting. Click to select
Terminate this process when you want the program to quit.
- Click to select the process in the Debug Processes list box, and then click
Debugger stops in disassembly view, and the program is paused. If the .pdb file is available in the same directory as the executable, debugger loads the source code.
- To view the source code, right-click
Disassembly, and then click Go to Source Codeto switch to the Code window. Insert a break point where you want it.
- On the Debug menu, click
Continue or press the F5 key to continue the process.
The debugger automatically stops when it reaches the breakpoint.
- On the Debug menu, click Stop Debugging or press the SHIFT+F5 keyboard shortcut to stop debugging.
- If you are debugging a program running on remote computer, install Mdm.exe on the computer. If Mdm.exe is not installed on the remote computer, install Mdm.exe, and then start the process before debugging.
- If the application is running in Release mode, the Debug class output is ignored.
Article ID: 318357 - Last Review: May 25, 2017 - Revision: 2