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.
The Run action allows me to evaluate the current script so it also lets me experiment with JVM JavaScript a little bit, but the context it lost after every execution. It would be pretty handy to have a continuous context to be able to interact with the JavaScript engine, for example for interactive testing of js code or even Java code.
This can be actually a part of JavaScript debugger, which is active on every run. Debugger's "Evaluate Code" can be currently used for this purpose, but a console-like component would be nicer.
The initial changes that change the browser log into an interactive console are pushed as changeset: 250144:a006191f0dad http://hg.netbeans.org/web-main/rev/a006191f0dad It remains to: - add the prompt (depends on issue #228051), - possibly print input in a different color, - add collapsing of errors and expansion of objects into a list of fields (depends on issue #127676), - SHIFT + ENTER adds newline into the input, - possibly arrow up lists through previous expressions, - add code-completion
The input is printed in a different color http://hg.netbeans.org/web-main/rev/232cd2b3e68a and objects can be expanded into a list of properties http://hg.netbeans.org/web-main/rev/59ba753b856d
We have a defect submitted for the prompt: issue #229408 and enhancement for code-completion: issue #229411. Then there are enhancements to improve Output Window so that it can behave more like a terminal: issue #229410 and issue #229414.
Integrated into 'main-golden', will be available in build *201305062300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/59ba753b856d User: mentlicher@netbeans.org Log: #102043: Expansion of objects into a list of properties.