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 242019 - [nashorn] Step out issue
Summary: [nashorn] Step out issue
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: PC All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: 8.0_HR_FIX
Depends on:
Blocks:
 
Reported: 2014-02-17 16:14 UTC by Vladimir Riha
Modified: 2014-02-21 11:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (49.02 KB, text/plain)
2014-02-17 16:14 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-17 16:14:24 UTC
Created attachment 145317 [details]
IDE log

Please try:
 - sample project http://services.netbeans.org/synergy/server/api/attachment.php?id=197
 - 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. // this line is red

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.



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)
Comment 1 Martin Entlicher 2014-02-20 12:57:36 UTC
Reproduced on Linux as well. IMHO worth to fix. Stepping in JavaScript is affected and this used to work before.
Comment 2 Martin Entlicher 2014-02-20 13:29:00 UTC
Fixed by changeset:   272540:5cfe54085c45
http://hg.netbeans.org/core-main/rev/5cfe54085c45

IMHO it's worth to get it into release80.
Comment 3 Martin Entlicher 2014-02-20 13:43:56 UTC
Vláďo, can you please verify when this propagates to the build? Thanks.
Comment 4 Vladimir Riha 2014-02-20 13:48:55 UTC
Sure, of course.
Comment 5 Vladimir Riha 2014-02-20 13:49:08 UTC
Thanks for the fix :)
Comment 6 Jaroslav Havlin 2014-02-20 14:36:31 UTC
> http://hg.netbeans.org/core-main/rev/5cfe54085c45
The commit looks fine to me.
Comment 7 Martin Entlicher 2014-02-20 17:56:49 UTC
Transplanted into release80:
http://hg.netbeans.org/releases/rev/92ee644bb552
Comment 8 Quality Engineering 2014-02-21 01:29:51 UTC
Integrated into 'releases/release80', will be available in build *201402202300* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/92ee644bb552
User: mentlicher@netbeans.org
Log: #242019: Assure, that the original information about stepping from a filtered location is retained during smart-stepping.
(transplanted from 5cfe54085c45c5a1d48498d451d7e253ed0f0e02)
Comment 9 Quality Engineering 2014-02-21 03:09:16 UTC
Integrated into 'main-silver', will be available in build *201402210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5cfe54085c45
User: mentlicher@netbeans.org
Log: #242019: Assure, that the original information about stepping from a filtered location is retained during smart-stepping.
Comment 10 Vladimir Riha 2014-02-21 11:45:06 UTC
Thank you, verified in RC1

Product Version: NetBeans IDE 8.0 RC1 (Build 201402202300)
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)