Configuring a Visual Studio Project for Remote Debugging
After the device is configured to support remote debugging, update your Visual Studio .NET 2003 project to support remote debugging on the device.
Note You configure a project differently for native and managed applications.
To configure a project to remotely debug native applications
- Open your native application solution in Visual Studio .NET 2003.
- In Solution Explorer, right-click on the new project and select Properties from the Configuration Properties context menu.
- Under Configuration Properties, click on the General item.
- Configure the settings for the Output Directory and the Intermediate Directory to point to a folder on the device, using the shared drive letter that you created earlier (Z: in this example).
- Select Debugging from the Configuration Properties context menu.
- In the Remote Settings section, select Remote via TCP/IP (Native only) from the drop-down box for the Connection setting.
- In the Remote System text box, type in the name or IP address of the device.
- In the Remote Command text box, type in the full path of the application to run. Use the path as it would appear on the device. For example, C:\debug\sample\helloworld.exe.
To configure a project to remotely debug managed applications
- Open your managed application solution in Visual Studio .NET 2003.
- In Solution Explorer, right-click on the new project and select Properties from the Configuration Properties context menu.
- Under Configuration Properties, click on the Build item.
- Configure the settings for the Output Path to point to a folder on the device, using the shared drive letter that you created earlier (Z: in this example).
- Select Debugging from the Configuration Properties context menu.
- In the Debug Mode drop-down box, choose Program and click the Apply button.
- In the Start Action section, type the full path of the application to be debugged into the Start Application text box. Type in the full path of the application to run. Use the path as it would appear on the device. For example, C:\debug\sample\helloworld.exe.
- In the Start Option section, select True from the drop-down box for the Enable Remote Debugging setting.
- In the Remote Debug System box, type in the name or IP address of the device.
See Also
How to Configure a Device for Remote Debugging | Debugging the Application on the Device
Last updated on Wednesday, October 18, 2006
© 2006 Microsoft Corporation. All rights reserved.