Share via


Debugging the Application on the Device

5/10/2007

After you set a breakpoint in your application, you can begin debugging the application as it executes on your Windows XP Embedded-based device.

Breakpoints tell the debugger that an application should break (pause execution) at a certain point or when a certain condition occurs. For more information on breakpoints, see the Help in Microsoft Visual Studio .Net 2003.

To begin a native debugging session

  1. In Visual Studio, press F5 or on the Debug menu, click Start.

    Visual Studio first compiles the application in the folder that you specified on the device, and then runs the application in the debugger on the device.

  2. When the debugging session is successfully opened, the command window displays the following message:

    A Debug session has been started for user: <you>
    
  3. On the Windows XP Embedded-based device, from the Help menu, click About.

    Execution of the program stops on the code line that is marked with the breakpoint.

    You can use Visual Studio to step through the code, to view the values of variables at different points during program execution, to view call stack information, and so on.

  4. To resume execution of the application on the device, press F5 or, on the Debug menu, click Start.

  1. In Visual Studio, press F5 or on the Debug menu, click Start.

    Visual Studio first compiles the application in the folder that you specified on the device, and then runs the application in the debugger on the device.

  2. When the debugging session is successfully opened, the command window displays the following message:

    A Debug session has been started for user: <you>
    
  3. On the Windows XP Embedded-based device, from the Help menu, click About.

    Execution of the program stops on the code line that is marked with the breakpoint.

    You can use Visual Studio to step through the code, to view the values of variables at different points during program execution, to view call stack information, and so on.

  4. To resume execution of the application on the device, press F5 or, on the Debug menu, click Start.

To begin a managed debugging session

  1. In Visual Studio, press F5 or, on the Debug menu, click Start.

    Visual Studio first compiles the application in the folder that you specified on the device, and then runs the application in the debugger on the device. Form1 should appear on the Windows XP Embedded device.

  2. Click the button on Form1 on the Windows XP Embedded-based device. Execution of the program stops on the code line that is marked with the breakpoint.

    You can use Visual Studio to step through the code, to view the values of variables at different points during program execution, to view call stack information, and so on.

  3. To resume execution of the application on the device, press F5 or, on the Debug menu, click Start.

  1. In Visual Studio, press F5 or, on the Debug menu, click Start.

    Visual Studio first compiles the application in the folder that you specified on the device, and then runs the application in the debugger on the device. Form1 should appear on the Windows XP Embedded device.

  2. Click the button on Form1 on the Windows XP Embedded-based device. Execution of the program stops on the code line that is marked with the breakpoint.

    You can use Visual Studio to step through the code, to view the values of variables at different points during program execution, to view call stack information, and so on.

  3. To resume execution of the application on the device, press F5 or, on the Debug menu, click Start.

See Also

Concepts

How to Configure a Device for Remote Debugging