You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (JIRA)" <ji...@apache.org> on 2018/05/04 02:01:02 UTC

[jira] [Updated] (NETBEANS-26) Run file for JS file doesn't work properly

     [ https://issues.apache.org/jira/browse/NETBEANS-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Laszlo Kishalmi updated NETBEANS-26:
------------------------------------
    Fix Version/s:     (was: 8.2)

> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists