-1

Any One please tell me that can i put break point in .js file or in .html file inside the eclipse? I can put break points only in .java file. Have to add any plugins for that ah?

Note: I'm running the application in device, so if html file loaded with webview, then i want to debug that html file.

Ponmalar
  • 6,871
  • 10
  • 50
  • 80

2 Answers2

0

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.

However, you have to install a few files -- but probably no more complicated to use than weinre. it does extensively modify the JS files (on the fly, transparently to the user) to enable all this debugging -- webKit really should support javascript debugging natively.

Ribo
  • 3,363
  • 1
  • 29
  • 35
-1

for debugging javascript you could use firebug or if IE developer tools (F10) and put a breakpoint in the code as it runs on the client browser.

hagensoft
  • 1,497
  • 13
  • 13
  • Thank you for your response. See, I'm running the application in device, so if html file loaded with webview, then i want to debug that html file – Ponmalar Sep 17 '12 at 06:48