04-23-2013 12:57 PM
I am trying to debug initiaization stage on a real device. The problem is that I won't be able to establish a remote debug session until the app is running. And by that time, I miss any console message I may have put in my initialization codes. Is there any technique to catch all console messages?
Solved! Go to Solution.
04-23-2013 04:06 PM
04-24-2013 11:23 AM
If you want to debug on the fly can I suggest you look up window.onerror
Its not perfect but allows you an extra level of control when debugging your app
Stick a handler in for this one, throw the output to some div you can see and you can see exactly whats happening
It misses some errors but for basic JS debug is very nice to have on your toolbelt