FORUMS
Remove All Ads from XDA

[XAP] Native Debugger for WP7 (Requires full unlock)

1,478 posts
Thanks Meter: 2,048
 
By ultrashot, Inactive Recognized Developer on 5th January 2012, 03:43 PM
Post Reply Email Thread
Title says it all - it is a debugger for native apps.

How to use it?
Prerequisites:
  1. You should have VS2008 and Windows Mobile 6 Pro SDK installed.
  2. If you also have VS2010 + WP7SDK, most likely you won't be able to use debugger in VS2008. To fix this issue copy attached edm2.exe to C:\Program Files (x86)\Microsoft Visual Studio 10.0\SmartDevices\Debugger\target\wce400\armv4i (probably without x86 postfix in Program Files path)
    (Just to note - this edm2.exe isn't "special for ce7". It works on WM6 device too)
  3. You should have full unlock on your phone (not dev unlock! not interop unlock!)

What's then?
  1. Sideload NativeDebugger.xap to phone
  2. Run it, wait until ip list appears.
  3. In VS2008: Tools->Options. Then change ip to 127.0.0.1. Screenshot:
  4. Enjoy.

Limitations
  1. You have to run xap after every soft reset
  2. If you create UI, debugger "forgets" to detect app closing. However, breakpoints still work and debug log is still being received.

What else can this xap do?
  • Native debugging, as it was already mentioned
  • You can use almost all CE Remote Tools.
    Limitations: CERemoteSpy can't setup a window hook (thanks MS for abandoning slot-based virtual memory system)
    Process Viewer can't get list of processes

Screenshots:


P.S. If you want to compile native exe, don't forget to generate new coredll.lib
Attached Files
File Type: xap NativeDebugger.xap - [Click for QR Code] (361.8 KB, 571 views)
File Type: rar edm2-wce7.rar - [Click for QR Code] (69.4 KB, 403 views)
The Following 13 Users Say Thank You to ultrashot For This Useful Post: [ View ] Gift ultrashot Ad-Free
 
 
5th January 2012, 03:49 PM |#2  
Cotulla's Avatar
Retired Senior Recognized Developer
Thanks Meter: 5,472
 
More
nice work, ultrashot
The Following User Says Thank You to Cotulla For This Useful Post: [ View ] Gift Cotulla Ad-Free
5th January 2012, 03:59 PM |#3  
HD2Owner's Avatar
Inactive Recognized Developer
Flag Neuhausen am Rheinfall
Thanks Meter: 2,476
 
More
good work buddy
The Following User Says Thank You to HD2Owner For This Useful Post: [ View ] Gift HD2Owner Ad-Free
5th January 2012, 04:15 PM |#4  
Senior Member
Thanks Meter: 44
 
More
I'm a little confused here, what's the difference between 'full unlock' and 'interop unlock'
5th January 2012, 04:22 PM |#5  
OP Inactive Recognized Developer
St.Petersburg
Thanks Meter: 2,048
 
More
Quote:
Originally Posted by Briefcase

I'm a little confused here, what's the difference between 'full unlock' and 'interop unlock'

Read
The Following User Says Thank You to ultrashot For This Useful Post: [ View ] Gift ultrashot Ad-Free
6th January 2012, 01:55 AM |#6  
ted973's Avatar
Senior Member
Flag Beijing
Thanks Meter: 62
 
More
Great!
Now can say bye-bye to a log file of debug!
6th January 2012, 02:56 AM |#7  
ZeBond's Avatar
Member
Thanks Meter: 17
 
More
Quote:
Originally Posted by ultrashot

Read

So basically it requires a custom ROM (read: HTC Only)?
6th January 2012, 08:36 AM |#8  
OP Inactive Recognized Developer
St.Petersburg
Thanks Meter: 2,048
 
More
Quote:
Originally Posted by ZeBond

So basically it requires a custom ROM (read: HTC Only)?

for now - yes.
The Following User Says Thank You to ultrashot For This Useful Post: [ View ] Gift ultrashot Ad-Free
25th January 2012, 08:13 PM |#9  
Senior Member
Thanks Meter: 367
 
More
The best app here. I am going to search old SDKs.
25th January 2012, 08:29 PM |#10  
Inactive Recognized Developer
Flag Seattle
Thanks Meter: 2,947
 
More
Hey @ultrashot, nice work man! Any chance you can see whether this can be used with the HtcRoot project (see my sig)? It would help a ton to be able to do debugging, both for improving HtcRoot and developing apps based on it, but I'm still using a stock ROM (and want to make HtcRoot usable for stock ROMs).

I'm not sure why the debugger doesn't work normally, but if it's some kind of permissions issue than HtcRoot should work around that quite well. It does require a working HtcUtility.dll driver, which not all custom ROMs have, by the way.
25th January 2012, 10:40 PM |#11  
Senior Member
Thanks Meter: 367
 
More
After hour of trying - I started Zune synchronisation and after it - "Connectin success".
Zoom in - OK.
Remote Spy - OK.
Remote Registry Editor - OK!!! (I will have 1/10 of work sometime)
Remote Heap Walker - OK.
Remote File Viewer - OK and very quick.
Remote Process Viewer - Nothing.

Thanks very much. I must repair process viewer and to learn debugging techniques on WM. M.
Post Reply Subscribe to Thread

Tags
full unlock, native debugger, native development, windows phone 7, wp7

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes