Share via


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

  1. Open your native application solution in Visual Studio .NET 2003.
  2. In Solution Explorer, right-click on the new project and select Properties from the Configuration Properties context menu.
  3. Under Configuration Properties, click on the General item.
  4. 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).
  5. Select Debugging from the Configuration Properties context menu.
  6. In the Remote Settings section, select Remote via TCP/IP (Native only) from the drop-down box for the Connection setting.
  7. In the Remote System text box, type in the name or IP address of the device.
  8. 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

  1. Open your managed application solution in Visual Studio .NET 2003.
  2. In Solution Explorer, right-click on the new project and select Properties from the Configuration Properties context menu.
  3. Under Configuration Properties, click on the Build item.
  4. 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).
  5. Select Debugging from the Configuration Properties context menu.
  6. In the Debug Mode drop-down box, choose Program and click the Apply button.
  7. 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.
  8. In the Start Option section, select True from the drop-down box for the Enable Remote Debugging setting.
  9. 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.