Bug 487474 - Unable to debug Java/Javascript mixed code Java8 nashorn
Summary: Unable to debug Java/Javascript mixed code Java8 nashorn
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Mac OS X
: P3 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-08 16:18 EST by Bill Reed CLA
Modified: 2016-10-06 06:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Reed CLA 2016-02-08 16:18:39 EST
I am working on code that is a mix of Java and JavaScript using Java 8 nashorn. My starter class is a Java class that calls JavaScript code in the nashorn engine. I launch the Java debugger for my java class and breakpoints in java are honored, but any breakpoints in my JavaScript code are not. IntelliJ and Netbeans support Java/JavaScript debugging, I found this discussion on the group http://eclipse.1072660.n5.nabble.com/Nashorn-Debugging-td173361.html I looked for an exsisting bug but could not find one.

Here is an example of what I am attempting to do https://blog.jetbrains.com/idea/2014/03/debugger-for-jdk8s-nashorn-javascript-in-intellij-idea-13-1/
Comment 1 Jörg von Frantzius CLA 2016-09-30 06:57:11 EDT
There also is no Javascript source display for Nashorn stackframes.

Sigh, IDEA has this since 2014 ...
Comment 2 Jörg von Frantzius CLA 2016-10-06 06:19:28 EDT
For reference, there was a discussion about this in wtp-dev: https://dev.eclipse.org/mhonarc/lists/wtp-dev/msg09176.html

Someone seemed to have started an implementation, but things got stuck somewhere.

And just to mention, Netbeans does support it as well: https://blogs.oracle.com/geertjan/entry/youtube_debugger_for_jdk8_s