Image CWR Mobility Wiki
To be able to debug your own Custom Controls and Callouts you need to enable Remote Debugging on the Compact Framework.

This article shows in detail how to do that: Enable Remote Debugging.

IMPORTANT: You need the .NET Compact Framework 2.0 Service Pack 2 Redistributable because this contains a fix for a debugging issue in SP1. Thanks Tracy-Lee for figuring this out!

Once you've enabled remote debugging perform the following steps:
1. Build you code in DEBUG mode and deploy it to the \Program Files\Mobile CRM folder on your device (or emulator).
2. Start CWR Mobile CRM.
3. Select Debug -> Attach to Process from within Visual Studio.
4. As a Transport choose "Smart Device":
Image

5. Click Browse... and connect to your device:
Image

6. A list of running processes on your device will appear. Select CWRMobileCRM.exe:
Image

7. If Remote Debugging was not enabled correctly you will get this message:
Image

Make sure that you created the correct registry settings (check spelling, upper/lower case) and make sure you started CWR Mobile CRM AFTER you changed the registry settings.

If you were able to attach to the process, Visual Studio will load the debug assemblies and you can set breakpoints in your own code.

Happy debugging!

Trackbacks: (none)

ScrewTurn Wiki version 2.0.35. This Wiki contains 64 pages.