How to debug Step by Step in Jquery-Mobile + HTML5 + Windows Phone Emulator

How to debug Step by Step in Jquery-Mobile + HTML5 + Windows Phone Emulator

Hi,

I am using jquery-mobile for creating a mobile app. I am using visual studio 2010 and windows phone emulator to run the application. My question is, how I can found the run time errors in jquery-mobile. Because HTML is displaying on emulator so firebug or other browser tools are useless. Also alert is not working in 1.4.0 version of jquery mobile.