On 11/04/2015 10:28 AM, Angelo zerr wrote:
Hi Gorkem,
Here some information I would like to tell you:
* JavaScript Debugger. It should be very cool if someone could
implement a debuger for tern.java to debug ternjs like Webclipse and
Nodeclipse have done
https://github.com/angelozerr/tern.java/tree/master/eclipse/debuggers.
This feature is soon finished and it gives you the capability to debug
ternjs en your custom tern plugin with Eclipse IDE. You select the
debugger you wish with a tern.java NodeJS preferences, you set a
breakpoint in the tern.js file (ex: where completion is executed). You
open a JS editor and you do Ctrl+Space and debugger stops to the
breakpoint. So now it's very easy to debug ternjs with Eclipse IDE.
I believe the purpose is first to create a regular JS debugger for
regular JS development. The use case you mention (debugging ternjs which
is used by the IDE or debugging of ternjs extensions) is a corner-case
that is not the main target of this development.
That said, when we've managed to get a generic JS debugger working, then
we could either tweak tern.java to start nodejs/tern as a debugged
JavaScript process using the Debug Configuration (so Webclipse and
Nodeclipse should provide extension for JSDT's Debug Configuration
directly), or we could wrap the Debug Configuration as an extension of
tern.java. The 1st approach is by far my favourite as it is a better
factorization of debug effort.
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
_______________________________________________
wtp-dev mailing list
wtp-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/wtp-dev