How do I debug Internet Explorer on Windows Phone 7?

singingwolfboy picture singingwolfboy · Mar 4, 2011 · Viewed 22.6k times · Source

I'm not a Windows Phone developer, and I want as little to do as possible with anything related to Microsoft. Nonetheless, I need to get my mobile web app running properly on Windows Phone 7. What debugging tools are available for the platform? Something like the Webkit developer tools or Firebug would be ideal, either from the phone itself or more likely, remotely debugging from my computer.

If such a thing doesn't exist, I'd settle for being able to read Javascript error messages, and view the contents of variables using alert() or similar. At this point, all I know is that my JS is failing: I don't know where or why, let alone how to fix it.

My dev computer is running OS X, and I'd really like to be able to use these tools from OS X if possible. Assuming that debugging tools exist (which I really hope they do) are they designed for Windows only? If so, does anyone know how well they would work with Wine or similar?

EDIT: I have a physical Windows Phone 7 device, so I can use that. However, alert() doesn't seem to be working, which is why I'm posting this question. Does alert() normally work on the WP7 browser?

Answer

scunliffe picture scunliffe · Mar 4, 2011

You'll likely find the Mobile Perf Bookmarklet to be the easiest all-in-one tool for testing any mobile device.

Works well on the iPhone/iPad/Samsung Galaxy Tab in my testing so far.

Quote:

It displays a menu with links that load other bookmarklets including Firebug Lite, Page Resources, DOM Monster, SpriteMe, CSSess, and Zoompf.

enter image description here