How do you debug JavaScript in the Android browser?
-
I'm used to Firebug in Firefox or the built-in developer tools in Chrome. Are there any similar tools for the Android browser?
-
Answer:
You may try jsconsole or Aardwolf (needs node.js) Remote debugging with jsconsole: http://www.thecssninja.com/javascript/remote-debug [Video] Remote debugging on the iPad http://vid.ly/6k1p0i Aardwolf: the iPhone/Android/WindowsPhone7 JavaScript debugger https://github.com/lexandera/Aardwolf
Tuncay Kaplan at Quora Visit the source
Other answers
jsHybugger is a new tool which enables javascript debugging in the default android browser. https://play.google.com/store/apps/details?id=org.jshybugger.proxy Video - how jsHybugger works?
Wolfgang Flohr-Hochbichler
You could overwrite the console functions to log into a floating div. It's long winded, but I don't know of any built-in methods of doing this. If that doesn't float your boat, check out http://phonegap.github.com/weinre/
James Brooks
I have used weinre on android to debug for a phonegap based project. http://people.apache.org/~pmuellr/weinre/docs/latest/UserInterface.html It is based on node.js. It has an interface like chrome developer tools, and good for dom debug. But, it doesn't support stack and advanced javascript debugging as far as I see. And, keeping the connection active between the browser and device may sometimes become another issue for large projects.
Selim Ãzergün
Remy Sharp introduced great software for remote debugging - jsconsole.js - which allows debugging in any web browser. It is really great, see http://jsconsole.com/remote-debugging.html. There are videos about how it works.
Michal MaÅák
I think stackoverflow has a great answer to this. To start with, make sure you can see console.log by entering about:debug in the address bar. This can be done via the browser without any debugger installed on device or PC.
Zhou Wenhan
Related Q & A:
- How can I debug my php code?Best solution by Stack Overflow
- How to cache external Javascript files?Best solution by Stack Overflow
- How do I debug with Pyglet?Best solution by Game Development
- How to remote debug my application with an IDE?Best solution by Stack Overflow
- How to remotly debug python on my apache?Best solution by blog.jetbrains.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.