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 249029 - Rerun action does not work correctly for NodeJS debugger
Summary: Rerun action does not work correctly for NodeJS debugger
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Node.js (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 250303 (view as bug list)
Depends on: 252283
Blocks:
  Show dependency tree
 
Reported: 2014-12-01 10:25 UTC by Vladimir Riha
Modified: 2015-05-20 02:10 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (84.80 KB, text/plain)
2014-12-01 10:25 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-12-01 10:25:27 UTC
Created attachment 150807 [details]
IDE log

Please try to:
 - debug NodeJS project (e.g. sample project Messages) 
 - finish debugging
 - in Output window, press Rerun button

=> IDE somehow starts debugger, but it is stuck on

"/usr/local/bin/node" "--debug-brk=9292" "/home/vriha/projects/tripplanner/server/src/server.js"
debugger listening on port 9292


and nothing happens. It seems like only browser debugger is running as Debugging window is closed and if I open it, it just shows "Program is running" and no combo box to switch debuggers


Thank you

Product Version: NetBeans IDE Dev (Build 201412010001)
Java: 1.7.0_71; Java HotSpot(TM) Client VM 24.71-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_71-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Martin Entlicher 2015-03-25 13:18:08 UTC
*** Bug 250303 has been marked as a duplicate of this bug. ***
Comment 2 Martin Entlicher 2015-03-25 13:18:26 UTC
Reproduced.
Comment 3 Martin Entlicher 2015-03-25 13:31:03 UTC
Can you please look Tomasi at how debugger could be re-launched on rerun? Thanks.
Comment 4 Tomas Mysik 2015-03-26 07:15:06 UTC
Unfortunately, currently there is no (at least easy) way to rerun node.js with debugger. The reason is that we need the node.js task (process) itself to be able to stop it once debugger is stopped - and this is currently not possible. Petr promised that he will try to improve ExtExecution API.

So, for now, rerun action is disabled for debug action.

Thanks.

http://hg.netbeans.org/web-main/rev/e6b132ad847a
Comment 5 Quality Engineering 2015-03-27 03:22:23 UTC
Integrated into 'main-silver', will be available in build *201503270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e6b132ad847a
User: Tomas Mysik <tmysik@netbeans.org>
Log: #249029 - Rerun action does not work correctly for NodeJS debugger

Disabled for now since we need the task itself (Future<Integer>)
to be able to stop it once debugger finishes.
Comment 6 Vladimir Riha 2015-03-30 20:18:54 UTC
Good enough for me :) Thank you, verified


Product Version: NetBeans IDE Dev (Build 201503300001)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.13.0-45-generic running on amd64; UTF-8; en_US (nb)
Comment 7 Tomas Mysik 2015-05-11 07:59:04 UTC
Rerun will be enabled once issue #252283 is fixed.
Comment 8 Tomas Mysik 2015-05-19 08:16:08 UTC
Even debugger rerun is possible now...
Comment 9 Tomas Mysik 2015-05-19 08:16:43 UTC
Done, please verify. Thanks.

http://hg.netbeans.org/web-main/rev/d203dd8cd4df
Comment 10 Quality Engineering 2015-05-20 02:10:24 UTC
Integrated into 'main-silver', will be available in build *201505200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d203dd8cd4df
User: Tomas Mysik <tmysik@netbeans.org>
Log: #249029 cont'd - Rerun action does not work correctly for NodeJS debugger

Rerun enabled for debug as well.