I am developing a web app that involves touchEvent. It will be much more easier to debug those if I can view the console remotely on my Mac.
Can I make my Mobile Safari on the iOS device store the console log somewhere in the system. I have already jailbreak my iPad.
Thanks!
- plug iphone into computer
- settings > safari > advanced > web inspector (turn on)
- open safari on your computer
- run your web app on your iphone in the safari browser
- on your computer in safari, go to develop > inspectable applications, your running app should be in there.
doing these steps enables the safari debug tools on your desktop to reflect and respond to the connected iphone.
hope that helps.
Just turn on the debugging console in Mobile Safari. This is enabled in Settings/Safari/Developer.
One File Remote Console.log for node.js
Solution: Server side console log.
You can use a remote javascript console. There a few available.
- weinre
- spotneedle
- jsconsole
In iOS6, you can now use the Remote Web Inspector on OSX to connector to the iPhone via USB. See the Apple documentation for more information.
mobile-console-log is also a utility for debugging directly from your mobile into Chrome Devtools