Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug javascript using Eclipse

Ok, this is some question...well, I haven't seeing in any other place a question like this one...

I need to debug a javascript file through Eclipse (Helios)...but, that is not all, the javascript file is called by a third party application (C/C++) that runs (Mozilla) SpiderMonkey to execute the js file.

I need, someway to conect Eclipse to this application and get the debug symbols. Or, something like that...

Anyone see something like this before? Have an advice?

[EDITED]

Scenario:

The application (consoleApp.exe) runs the javascript engine SpiderMonkey embedded. I need to, from Eclipse IDE, attach the application process and debug the current javascript source that SM is running.

Tks!

[THANKS!!!]

For anyone who gives a thought/comment/idea to answer this question. I figured out what i have to do, but, it will be difficult. I need to ask to modify the application core to expose the debug information coming from SpiderMonkey and JSD. And write an Eclipse plugin (or modify Pistol, maybe) to
comply with i want to do. Again, thanks to everyone.

like image 358
marcoaoteixeira Avatar asked Jan 29 '13 16:01

marcoaoteixeira


1 Answers

You can try Firbug or Firefox web developer tools under Tools option.

In Eclipse:

JavaScript Development Tools (JSDT) - Eclipse.org

www.eclipse.org/webtools/jsdt/

like image 121
SaK Avatar answered Sep 30 '22 14:09

SaK