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 256822 - Support for auto-breakpoint insertion for 'debugger' statements with nashorn
Summary: Support for auto-breakpoint insertion for 'debugger' statements with nashorn
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: PC All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-26 16:41 UTC by sundararajana
Modified: 2016-09-02 01:58 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 sundararajana 2015-11-26 16:41:14 UTC
ECMAScript "debugger" statements [ http://www.ecma-international.org/ecma-262/5.1/#sec-12.15 ] are translated as calls to an empty body method [ jdk.nashorn.internal.runtime.ScriptRuntime.DEBUGGER method in nashorn ]. 

Is it possible to insert a breakpoint into this method on *any* nashorn debugging session automatically? That way, user need not even open/edit JS files in NetBeans -- just need to throw 'debugger' statements for breakpoints. 

NB will get control into DEBUGGER method - on pressing F8, control will land at debugger statement [if that can also be automated, that would be great! i.e., auto-F8 for DEBUGGER methods].
Comment 1 Martin Entlicher 2015-11-26 16:48:17 UTC
Thanks, scheduling for the current dev.
Comment 2 Martin Entlicher 2016-08-31 10:00:47 UTC
Fixed by changeset:   300419:f48c4c9dc480 and changeset:   300420:c0ea2450ab72
http://hg.netbeans.org/core-main/rev/c0ea2450ab72
Comment 3 Quality Engineering 2016-09-02 01:58:27 UTC
Integrated into 'main-silver', will be available in build *201609020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f48c4c9dc480
User: mentlicher@netbeans.org
Log: Prefer the event thread when in step. (This is necessary for the fix of issue #256822)