This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Nashorn debugging shows wrong eval script | ||
---|---|---|---|
Product: | javascript | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Debugger | Assignee: | Martin Entlicher <mentlicher> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 240183 | ||
Attachments: | Sample project mixing Java and JavaScript |
This should be fixed by http://hg.netbeans.org/core-main/rev/d56364e7d1f3 Debugging the sample project still does not work for me. Yes, reproduced, I'm sorry, eval shows the first content each time. Finally fixed by changeset: 270297:a95fa5b42f5f http://hg.netbeans.org/core-main/rev/a95fa5b42f5f I can confirm the program counter is displayed correctly now. However there is a problem with breakpoints. Once you place a breakpoint into <eval.js> snippet, it becomes active in all snippets... Reported as bug 240183 Integrated into 'main-silver', will be available in build *201401110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a95fa5b42f5f User: mentlicher@netbeans.org Log: #239382: Cache the source objects not by class names, but by class unique IDs. |
Created attachment 143072 [details] Sample project mixing Java and JavaScript Tested on own build from Dec 11, 2013. Run NetBeans on JDK8, open attached project. Find AbstrPrsntrNGTest class and put breakpoint to line 114. Debug the test. When the breakpoint is hit look at the string to evaluate and step into JavaScript. The right source is displayed. Continue few times, until different script is about to be evaluated. Step in. The previous script is shown instead of the new one.