Remote Debugging VS20xx
Debugging on CE device without ActiveSync
Without the help of ActiveSync, VS20xx does not automatically copy the connectivity binaries down to the device and hence debugging becomes problematic.
In order to use debugger on Windows-CE devices without active sync, you need to:
NOTE:
Implementing native C++ code under VS20xx requires to install the Beckhoff-SDK for CE
See article "BECKHOFF SDK"
Step 1. Manually copy some files down to the CE-device
- To establish remote debugging you have to transfer some required files to the target CE-device.
Unfortunately each version of Visual Studio .NET (and also the installed Service Packs) provides different versions of the required files to enable remote debugging.
So it's not possible to establish a remote debugging connection from a host-PC running VS2005-SP1 to a CE-device with files from VS2005 (wothout SP)
The required files are availble on your Visual Studio .NET host-PC, see folder
"C:\Program Files\Common Files\Microsoft Shared\CoreCon\\Target\wce400"<yyyy> (note that <yyyy> may be differ from time to time)
Xcopy all file from correct subfolder to your CE-Device:
BEKCHOFF-CE-X86 devices: xcopy all components of subfolder \wce400\x86
BECKHOFF-CE-ARM devices: xcopy all components of subfolder \wce400\ARMV4i
Step 2. Manually launch files on CE device
- On the CE device side, first open the command prompt and run "Conmanclient2.exe"
Step 3. Set the correct IP address
- On the host side, open VS 20xx
- Goto "Tools-->options-->device tools-->devices"
- Choose Windows CE device, click on “properties”.
- On the “Windows CE device properties” dialog, click on “configure”.
- On the “Configure TCP/IP” Transport dialog, choose “use specific IP address” and type in the IP address of your windows CE device.
- Click OK
Step 4. Enable the connection
- On CE device : Open the command prompt and run "cMaccept.exe"
- Connect to the device within 3 minutes after you run cMaccept.exe. (The 3 minutes window is for the first connection. As long as you establish the first connection within 3 minutes, the following deployment/debugging sessions using the same VS instance is not limited by this 3 minutes window)
- You need to perform Step 4 again when you try to connect from another instance of VS.
- Now debugger is ready to go, and you should be able to deploy and debug program(s) running on Windows CE device now.