Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When I try to run a nodeJS file with this code inside:
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'); });
it runs the file, and shows me only this output:
"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
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:
"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
So I expect the same behaviour for run file and debug file, except that debug file should handle debuggging.
Regards
Chris
Attachments
Issue Links
- Blocked
-
NETBEANS-140 Run file output is waiting forever
- Closed