Windows Mobile
Local
External
Connect Emulator to the Internet in Vmware
Environment
- Vmware workstation running Windows XP Pro
- Visual Studio 2005
- Windows Mobile 5.0 Pocket PC Emulator
- ActiveSync 4.5.0(Build 5096)
- VNC
Steps (unverified)
- VNC is off
- Verify that Windows XP Pro running IE can get to google.
- In Visual Studio
Tools | Options | Device Tools | Devices | Windows Mobile 5.0 Pocket PC Emulator | Properties
Set Transport: to DMA Transport
- Start Device Emulator Manager
- Start Windows Mobile 5.0 Pocket PC Emulator
- Configure Emulator
File | Configure... | Network
Check 'Enable NE2000 PCMCIA network adapter and bind to:' and choose in pulldown:
'VMWare Accelerated AMD PCNet Adapter - Packet Scheduler Miniport'
- Do not check 'Host-only networking'
- In Emulator
Settings | Connections | Conections | Advanced | Select Networks
Set to 'My Work Network' as both choices
- Proxy Settings: check _only_ 'This network connects to the Internet'
- 'Modem' has no entries
- ? Active Sync Menu has this not grayed out 'Connect via DMA...'
- In IE goto www.google.com
- Turn VNC on (in Windows XP Pro)
- Goto site that needs VNC in emulator
Debugging, Attaching to a Remotely Running Process
- Use Remote Remote Registry Editor
- Assure (meaning create if needed) the following key exists:
HKLM\Software\Microsoft\.NETCompactFramework\Managed Debugger
- Under the key
Loader create the follwing DWORD value and set its value to 1
AttachEnabled - set to 1 to allowed it, or 0 to disallow it
- Run the Application on the device
- In Visual Studio choose Debug | Attach to Process ...
- For Transport choose Smart Device
- For Qualifier choose the device
- After a moment the list of processes you can attatch to shows up
- Select the process you want to debug
- 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
- Use Remote Remote Registry Editor
- Assure (meaning create if needed) the following key exists:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging
- Under the key
Logging create the follwing DWORD values and set their value to 1
Enabled - this controls logging, 1 is on, 0 is off
UsePid - this makes the Process ID be part of the log file names, 1 is on, 0 is off
UseApp - this makes the App name be part of the log file names, 1 is on, 0 is off
Flush - this forces flushing of the logs, 1 is on, 0 is off
Network logging
- Use Remote Remote Registry Editor
- Assure (meaning create if needed) the following key exists:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Network
- Under the key
Loader create the follwing DWORD value and set its value to 1
Enabled - this controls loader logging, 1 is on, 0 is off
Loader logging
- Use Remote Remote Registry Editor
- Assure (meaning create if needed) the following key exists:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Loader
- Under the key
Loader create the follwing DWORD value and set its value to 1
Enabled - this controls loader logging, 1 is on, 0 is off
Interop logging
- Use Remote Remote Registry Editor
- Assure (meaning create if needed) the following key exists:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Interop
- Under the key
Loader create the follwing DWORD value and set its value to 1
Enabled - this controls loader logging, 1 is on, 0 is off
Error logging
- Use Remote Remote Registry Editor
- Assure (meaning create if needed) the following key exists:
HKLM\Software\Microsoft\.NETCompactFramework\Diagnostics\Logging\Error
- Under the key
Loader create the follwing DWORD value and set its value to 1
Enabled - this controls loader logging, 1 is on, 0 is off
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.