I have an android application and I am using javascript in it. Can anyone tell me how can I debug my html files? It doesnt show any option of inserting breakpoints.
Asked
Active
Viewed 2,981 times
0
-
Step one would be to simply run it. – keyser Oct 11 '12 at 07:31
-
But I wanana check the values of variables being passed there. I want to debug that file. – Khushboo Oct 11 '12 at 07:35
-
Perhaps check them just before you pass them, or print/alert them. – keyser Oct 11 '12 at 07:36
-
Isn't there any way to debug it in Eclipse? – Khushboo Oct 11 '12 at 07:37
-
Try jsHybugger: http://www.jshybugger.org/ It lets you set breakpoints, singlestep, catch exceptions, and interact with the JS/DOM environment. You can use it from Eclipse or from a Chrome or Chrome-compatible debugger on the remote desktop. It can be used with apps that create their own webView. – Ribo May 26 '13 at 13:22
3 Answers
1
Have a look at below in regards to debugging JavaScript in Eclipse.
I prefer to debug JS using Firefox addon myself:
http://getfirebug.com/javascript
Hope this helps.
1
I don't think eclipse natively offers such feature. However, you may try FireBug plug-in in Mozilla Firefox or Google Chrome browser (its built-in dev. tools) to get this done.
0
As the other two answers state; either use the Firebug plugin with Firefox - you can insert breakpoints there, or use Chrome's debugger. It looks a lot like firebug, only it's integrated with the browser by default.

Zoltán
- 21,321
- 14
- 93
- 134