Home   Notes   Contact Me

Windows Mobile

Local

External


Connect Emulator to the Internet in Vmware

Environment

Steps (unverified)


Debugging, Attaching to a Remotely Running Process

  1. Use Remote Remote Registry Editor
  2. Assure (meaning create if needed) the following key exists:
    HKLM\Software\Microsoft\.NETCompactFramework\Managed Debugger
  3. Under the key Loader create the follwing DWORD value and set its value to 1
  4. Run the Application on the device
  5. In Visual Studio choose Debug | Attach to Process ...
  6. For Transport choose Smart Device
  7. For Qualifier choose the device
  8. After a moment the list of processes you can attatch to shows up
  9. Select the process you want to debug
  10. Attach to it

Debug Logging

To use logging, you must turn it on, and you must specify what to log. How to do these things follows

How to Turn on Debug Logging

  1. Use Remote Remote Registry Editor
  2. Assure (meaning create if needed) the following key exists:
    HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging
  3. Under the key Logging create the follwing DWORD values and set their value to 1

Network logging

  1. Use Remote Remote Registry Editor
  2. Assure (meaning create if needed) the following key exists:
    HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Network
  3. Under the key Loader create the follwing DWORD value and set its value to 1

Loader logging

  1. Use Remote Remote Registry Editor
  2. Assure (meaning create if needed) the following key exists:
    HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Loader
  3. Under the key Loader create the follwing DWORD value and set its value to 1

Interop logging

  1. Use Remote Remote Registry Editor
  2. Assure (meaning create if needed) the following key exists:
    HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Interop
  3. Under the key Loader create the follwing DWORD value and set its value to 1

Error logging

  1. Use Remote Remote Registry Editor
  2. Assure (meaning create if needed) the following key exists:
    HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Error
  3. Under the key Loader create the follwing DWORD value and set its value to 1

Remote Registry Editor

"Remote Registry Editor" can be found at
Start | Microsoft Visual Studio 2005 | Visual Studio Remote Tools | Remote Registry Editor
The first time you use it with a device, it may download many things that require you to allow them to be installed on the device, so if it asks you if it is okay to install things, say yes to each of them.