Debugging JavaScript on mobile devices can be a headache. There are some proprietary tools and old initiatives like WeinRe but they are not easily extensible. Etienne introduces Vorlon.js to help you debug your apps easily!
Some articles about Vorlon.js: