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 250494 - Add debugger options into HTML/JS -> Node.js panel
Summary: Add debugger options into HTML/JS -> Node.js panel
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 14:22 UTC by Martin Entlicher
Modified: 2015-02-20 03:58 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2015-02-18 14:22:02 UTC
In debugger we have "Applied code changes" feature in Node.js and it would be nice if the user could turn on/off the automatic application of new code on save.

I'll prepare DebuggerOptions class in org.netbeans.modules.javascript.v8debug.api package, which will contain methods:
boolean isLiveEdit()
void setLiveEdit(boolean)

In the options we'd like to have one checkbox with a description underneath:
[x] Apply Code Changes on Save (Live Edit)
    When selected, Save will automatically update your Node.js application.
    "Apply Code Changes" action can be used to update manually otherwise.

Thanks.
Comment 1 Martin Entlicher 2015-02-18 14:50:27 UTC
I've added DebuggerOptions class:
http://hg.netbeans.org/web-main/rev/685b531acb20
Comment 2 Tomas Mysik 2015-02-19 06:56:39 UTC
Martine, does it make sense to have such checkbox per project? I guess not but I would like to know your opinion.

Thanks.
Comment 3 Tomas Mysik 2015-02-19 06:57:25 UTC
(In reply to Tomas Mysik from comment #2)
> Martine, does it make sense to have such checkbox per project?

I mean in Project Properties dialog, of course.
Comment 4 Martin Entlicher 2015-02-19 07:05:32 UTC
I do not think it's necessary. IMHO a global option is sufficient.
Comment 5 Tomas Mysik 2015-02-19 07:09:09 UTC
Will do it ASAP, thanks.
Comment 6 Tomas Mysik 2015-02-19 07:28:18 UTC
Done, please verify. Thanks.

http://hg.netbeans.org/web-main/rev/51c189802b8b
Comment 7 Quality Engineering 2015-02-19 07:52:26 UTC
Integrated into 'main-silver', will be available in build *201502190509* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/685b531acb20
User: mentlicher@netbeans.org
Log: #250494: The DebuggerOptions API class added.
Comment 8 Martin Entlicher 2015-02-19 09:07:26 UTC
Verified, thank you.
Comment 9 Quality Engineering 2015-02-20 03:58:19 UTC
Integrated into 'main-silver', will be available in build *201502200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/51c189802b8b
User: Tomas Mysik <tmysik@netbeans.org>
Log: #250494 - Add debugger options into HTML/JS -> Node.js panel