Attach to the Application Debugger (Compact 2013)
3/26/2014
Before you can debug applications, both managed and native, you need to attach to the application debugger. The steps for attaching the applications to the debugger, provided in this topic, are slightly different for managed and native applications.
Attaching an Application to the Debugger
To attach a managed application to the application debugger
Copy the device-side Core Connectivity binary files from the Application Builder installation folder, for example C:\Program Files (x86)\Common Files\Microsoft Shared\Embedded Tools\CoreCon\11.0\Target\wce800. If you are targeting ARM, copy the entire contents of the armv7 folder. If you are targeting x86, copy the entire contents of the x86 folder. You will see the following device side binary list:
- clientshutdown3.exe
- CMAccept3.exe
- ConmanClient3.exe
- DeviceAgentTransport3.dll
- eDbgTL3.dll
- TcpConnectionA3.dll
Set the SYSGEN_NETUTILS variable in your OS design to include Ipconfig.exe. This setting will allow you to provide the IP address to the remote tools shell on the desktop.
Create an application. For more information, see Create Your First Application.
Deploy the application on the device.
Set the following Registry entry on the device:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework\Managed Debugger AttachEnabled=1
On the Debug menu, select Attach, and then open the Attach to Process window.
Under the Transport field, select Windows Embedded Compact Managed Debugger.
Enter the IP address of the device in the Qualifier text box, and then click Enter.
A list of running processes is displayed.
Select the process that you want to debug, and then click Attach.
To attach a native application to the application debugger
Copy the device-side Core Connectivity binary files from the Application Builder installation folder, for example C:\Program Files (x86)\Common Files\Microsoft Shared\Embedded Tools\CoreCon\11.0\Target\wce800. If you are targeting ARM, copy the entire contents of the armv7 folder. If you are targeting x86, copy the entire contents of the x86 folder. You will see the following device side binary list:
- clientshutdown3.exe
- CMAccept3.exe
- ConmanClient3.exe
- DeviceAgentTransport3.dll
- eDbgTL3.dll
- TcpConnectionA3.dll
Set the SYSGEN_NETUTILS variable in your OS design to include Ipconfig.exe. This setting will allow you to provide the IP address to the Remote Tools shell on the desktop.
Create an application. For more information, see Create Your First Application.
Copy the device-side CoreCon binary files from the Application Builder installation folder, for example C:\Program Files (x86)\Common Files\Microsoft Shared\Embedded Tools\ 11.0\Debugger\Target\wce800. If you are targeting ARM, copy the entire contents of the armv7 folder. If you are targeting x86, copy the entire contents of the x86 folder. You will see the following device side binary list:
- 1033\vsdebugeng.impl.resources.dll
- DeviceAgentTransport3.dll
- eDbgTL3.dll
- edm3.exe
- MSDIA110.dll
- MSVCP110.dll
- MSVCR110.dll
- msvsmon.exe
- msvsmon.exe.config
- VSDebugEng.dll
- vsdebugeng.impl.dll
Deploy the application on the device.
Run msvsmon on the device with the following parameters:
#noauth#anyuser#nosecuritywarn
Note
The msvsmon command needs to be run once only. You do not have to run it for subsequent sessions of debugging.
On the Debug menu, select Attach, and then open the Attach to Process window.
Under the Transport field, select Remote (no authentication).
Enter the IP address of the device in the Qualifier text box, and then click Enter.
Note
If port(:4016) is in the contents of the field, remove it.
A list of running processes is displayed.
Select the process that you want to debug, and then click Attach.