To debug a Windows CE program, the program must be running in either an emulated or remote Windows CE environment. Under emulation, the Windows CE debugging process is similar to the Visual C++ debugging process. However, to debug a Windows CE program, the program is copied to the object store (during the build process) and executed in a simulated Windows CE environment on your desktop computer.
The remote debugging model varies, depending on the connection between the remote device and the desktop computer. The Windows CE Toolkit for Visual C++ 5.0 builds all binaries on the desktop computer and then downloads the binaries to the remote device.
Note If you enable Always Download on the Build menu, your program will be automatically loaded onto the remote device during the build process.
-or-
select Go if you want the debugger to stop only at soft or hard breakpoints.
Note If you stop the debugger when it is not at a breakpoint, you may leave the remote device in an undetermined state. The debugger can only unload the debug subsystem when the device is at a breakpoint.
Remote debugging differs from native debugging in the following ways:
Tips You can enable and disable breakpoints while the debugger is running. The procedure is the same if you set the breakpoints before debugging. Use the hand icon to set or remove a breakpoint where the cursor is positioned, or click Breakpoints on the Edit menu, and specify the line number.
To optimize performance while single-stepping, close any unnecessary windows in the debugger.
Click Step Into if you have not set a breakpoint in your executable. If you start debugging using Go, and no breakpoints are set, you may lose control of the target device and may have to restart it.
Verify that the host machine and the remote device are connected by checking for a connection icon in the icon tray of both taskbars.
If your remote device loses its connection during debugging, there are several ways to attempt reconnection: unplug and replug the PC-link, run Repllog.exe on the remote device, or cycle its power.
If your workspace contains both EXE and DLL projects, select EXE as the active project when debugging.