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.
Created attachment 153951 [details] Project reproducing not working "Run to Cursor" button in Node.JS code. Product Version: NetBeans IDE Dev (Build 201505290001) Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14 System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb) User directory: /home/cesilko/.netbeans/dev Cache directory: /home/cesilko/.cache/netbeans/dev Description: ============ "Run to Cursor" Debugger toolbar action works fine in user's JavaScript code but it does nothing when stepping through Node.JS source code e.g. net.js file. If the feature is not supposed to work, the button should be disabled. Steps to reproduce: =================== 1. Open attached HelloWorldNodeJS project. 2. Press Ctrl+F5 to start debugging of its main.js code. 3. When debugger stops execution at line 7, press "Step Over" toolbar button. 4. With cursor at line 9 in main.js press "Step Into" toolbar button. 5. With cursor at line 62 in http.js file, press "Step Out" toolbar button. 6. With cursor at line 13 in main.js press "Step Into" toolbar button again. 7. With cursor at line 1214 in net.js click line 1216 and press "Run to Cursor" toolbar button again. Expected: Debugger resumes execution of code until stops at line 1216. Actual: Nothing happens.
Run to Cursor works in user's sources, but there was a problem in node.js sources. It's fixed by changeset: 288352:eea2266392c2 http://hg.netbeans.org/web-main/rev/eea2266392c2
Integrated into 'main-silver', will be available in build *201506140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/eea2266392c2 User: mentlicher@netbeans.org Log: #252683: Run to Cursor did not work in node.js sources.
Product Version: NetBeans IDE Dev (Build 201506150001) Java: 1.7.0_76; Java HotSpot(TM) 64-Bit Server VM 24.76-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_76-b13 System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb) Verified. Thanks for the fix Martine.