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.

Bug 241690 - [nashorn] Cannot step into to engine.eval() when eval.js should open
Summary: [nashorn] Cannot step into to engine.eval() when eval.js should open
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 11:52 UTC by Vladimir Riha
Modified: 2014-02-17 16:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (69.94 KB, text/plain)
2014-02-11 11:52 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-02-11 11:52:58 UTC
Created attachment 145032 [details]
IDE log

Please try:
  - download [1] project
  - add line breakpoint to SampleRunner.java:51
  - in JavaScript_sample.java, change value of "mode" variable to "plain"
  - debug project
  - debugger stops on the line breakpoint
  - press Step Into twice

=> <eval.js> tab is not opened, which mean you cannot debug the code inside the engine.eval() , debugger console contains (after the second Step Into)

   Listening on javadebug
   User program running
   LineBreakpoint SampleRunner.java : 51 successfully submitted.
   Breakpoint hit at line 51 in class javascript_sample.SampleRunner by thread main.
   Thread main stopped at SampleRunner.java:51.
   User program running
   Thread main stopped at AbstractScriptEngine.java:264.
   User program running
   Thread main stopped at <eval>.$getMap.


Please evaluate for potential 8.0 stopper, this used to work last week (tested on Mac). Thank you

[1] http://services.netbeans.org/synergy/server/api/attachment.php?id=138



Product Version: NetBeans IDE Dev (Build 201402110001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Vladimir Riha 2014-02-11 16:12:33 UTC
I'm sorry, the URL is 

http://services.netbeans.org/synergy/server/api/attachment.php?id=197

It seems to work fine on linux


Product Version: NetBeans IDE Dev (Build 201402110001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b128
&&
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 Vladimir Riha 2014-02-12 14:41:06 UTC
It seems like similar case is following:
 - in the project above, open test1.js and add line breakpoint to line 6
 - debug file test1.js
 - debugger stops on line 6 for the first time => Continue F5
 - debugger stops again on line 6
=> press Step out

Debugger console contains 
   Listening on javadebug
   User program running
   Thread main stopped at test1.js:6.
   User program running
   Thread main stopped at test1.js:6.
   User program running
   Thread main stopped at LambdaForm$MH.invokeExact_MT.

Debugger is stopped on some line but it is not visible in editor (line is not highlighted green), common Step Into/Continue are enabled but not working properly (editor still does not reflect debugging state)   and IDE log contains

The reason is likely no opened project with this source file.
Source path "jdk\nashorn\internal\runtime\ScriptFunctionData.java" was not found.
The reason is likely no opened project with this source file.
Source path "jdk\nashorn\internal\scripts\test1.js" was not found.
The reason is likely no opened project with this source file.
Source path "jdk\nashorn\internal\scripts\test1.js" was not found.
The reason is likely no opened project with this source file.
Source path "java\lang\invoke\LambdaForm$MH\LambdaForm$MH" was not found.
The reason is likely no opened project with this source file.
Comment 3 Martin Entlicher 2014-02-13 13:09:55 UTC
Reproduced.
Comment 4 Martin Entlicher 2014-02-14 16:17:30 UTC
Fixed by changeset:   272217:223cc90c7721
http://hg.netbeans.org/core-main/rev/223cc90c7721
Comment 5 Quality Engineering 2014-02-15 05:12:45 UTC
Integrated into 'main-silver', will be available in build *201402150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/223cc90c7721
User: mentlicher@netbeans.org
Log: #241690: Test JS script classes with respect to the Windows paths as well.
Comment 6 Vladimir Riha 2014-02-17 16:16:25 UTC
Thank you, case from description works fine. Case from comment #2 reported as issue 242019.


Product Version: NetBeans IDE Dev (Build 201402170649)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)