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 258936 - Cannot step into Nashorn, breakpoints do not work
Summary: Cannot step into Nashorn, breakpoints do not work
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2016-04-21 07:50 UTC by Jaroslav Tulach
Modified: 2016-04-26 15:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2016-04-21 07:50:52 UTC
I have most recent build of NetBeans and JDK and debugging of Nashorn doesn't work for me when trying to find out what is wrong in my bck2brwsr project.

Setup:
Product Version: NetBeans IDE Dev (Build 20160421-bef6f4f37b0a)
Java: 1.8.0_77; Java HotSpot(TM) 64-Bit Server VM 25.77-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_77-b03
System: Linux version 3.19.0-49-generic running on amd64; UTF-8; en_US (nb)

The project:
$ hg clone http://source.apidesign.org/hg/bck2brwsr
$ cd bck2brwsr 
$ hg up -C 685193e0d793
$ mvn clean install

The build will fail on 

Tests run: 287, Failures: 1, <<< FAILURE!
upCastAnArray(org.apidesign.vm4brwsr.ArrayTest)  Time elapsed: 0.294 sec  jdk.nashorn.internal.runtime.ECMAException.create(ECMAException.java:113)
jdk.nashorn.internal.scripts.Script$Recompilation$151$\^eval\_.VM$fillInVMSkeleton$org_apidesign_vm4brwsr_Array$castArray__ZI(<eval>:47002)
jdk.nashorn.internal.scripts.Script$Recompilation$101$1796904AAA$\^eval\_.VM$invokeMethod(<eval>:47632)
jdk.nashorn.internal.scripts.Script$Recompilation$100$\^eval\_.VM$bck2brwsr$loadClass-1$L:47751(<eval>:47752)
jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:614)
jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199)
jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:383)
jdk.nashorn.api.scripting.NashornScriptEngine.invokeMethod(NashornScriptEngine.java:199)
org.apidesign.vm4brwsr.TestVM.execCode(TestVM.java:73)
org.apidesign.vm4brwsr.TestVM.assertExec(TestVM.java:106)
org.apidesign.vm4brwsr.ArrayTest.assertExec(ArrayTest.java:139)
org.apidesign.vm4brwsr.ArrayTest.upCastAnArray(ArrayTest.java:108)

Try to debug this! E.g. debug single method, stop at TestVM.java:73 and step into. The execution doesn't stop in JavaScript. I believe this is a regression - it used to work as far as I remember.
Comment 1 Martin Entlicher 2016-04-21 10:01:51 UTC
Step into does not work :-(
Comment 2 Martin Entlicher 2016-04-25 16:41:30 UTC
Stepping in Nashorn is fixed by changeset:   296911:63f844222dbf
http://hg.netbeans.org/core-main/rev/63f844222dbf
Comment 3 Quality Engineering 2016-04-26 15:28:04 UTC
Integrated into 'main-silver', will be available in build *201604261340* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/63f844222dbf
User: mentlicher@netbeans.org
Log: #258936: Stepping in Nashorn repaired.