You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (JIRA)" <ji...@apache.org> on 2017/07/04 13:00:08 UTC
[jira] [Created] (NETBEANS-26) Run file for JS file doesn't work
properly
Christian Lenz created NETBEANS-26:
--------------------------------------
Summary: Run file for JS file doesn't work properly
Key: NETBEANS-26
URL: https://issues.apache.org/jira/browse/NETBEANS-26
Project: NetBeans
Issue Type: Bug
Components: javascript - Node.js
Reporter: Christian Lenz
Fix For: 8.2
When I try to run a nodeJS file with this code inside:
{code}
const WebSocket = require('ws');
const wss = new WebSocket.Server({port: 9999});
console.log("test");
wss.on('connection', function connection(ws) {
console.log("Server is running!");
ws.on('message', function incoming(message) {
console.log('received: %s', message);
});
ws.send('something');
});
{code}
it runs the file, and shows me only this output:
{code}
"C:\Program Files\nodejs\node.exe" "--debug-brk=62580" "--expose_debug_as=v8debug" "C:\Projekte\Others\FullStack App\ws-test.js"
Debugger listening on 127.0.0.1:62580
{code}
but nothing more, I expect to see the text: test
When I debug the file, I got the right result, after I skip the "stop at first line" problem:
{code}
"C:\Program Files\nodejs\node.exe" "--debug-brk=62580" "--expose_debug_as=v8debug" "--debug=9292" "C:\Projekte\Others\FullStack App\ws-test.js"
Debugger listening on 127.0.0.1:9292
test
{code}
So I expect the same behaviour for run file and debug file, except that debug file should handle debuggging.
Regards
Chris
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)