-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anyone tried --inspect with socketcluster #204
Comments
Heh, fun, I got a different callstack though:
@jondubois this is a gamechanger if we can get this to work, any ideas on where to start? |
@cometta @mattkrick Ok I implemented the fix in v5.0.9. Note that if you use the If you want to debug workers, you need to add an
You can also debug broker processes using
I've updated the docs here http://socketcluster.io/#!/docs/debugging with info about the --inspect flag. Note that there is currently a minor 'bug' in Node.js which prevents you from setting custom debug ports for the workers when using the I raised an issue on the Node.js repo: nodejs/node#8201 |
Still getting something weird:
|
@mattkrick You need to update dependencies too:
|
I tested this working fine now. May i know when we view the sourcemap , source file in chrome dev tool, it showed the babel transpiled code instead of raw es6 code. How to display es6 code in dev tool sourcemap? |
Note that recently there was a similar issue related to using the top-level |
Note: This does not work with So
would not work. Just use the ts-node-dev package.
and it prints something like
which indicates it opened the debugging ports. |
I unable to run node --inspect with socketcluster .
$node --inspect ./server.babel.js
Debugger listening on port 9229.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/remote/serve_file/@521e5b7e2b7cc66b4006a8a54cb9c4e57494a5ef/inspector.html?experiments=true&v8only=true&ws=localhost:9229/node
Debugger listening on port 5859.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/remote/serve_file/@521e5b7e2b7cc66b4006a8a54cb9c4e57494a5ef/inspector.html?experiments=true&v8only=true&ws=localhost:5859/node
[Busy] Launching SocketCluster
Unable to open devtools socket: address already in use
1: node::Abort() [/usr/local/bin/node]
2: node::inspector::AgentImpl::WorkerRunIO() [/usr/local/bin/node]
3: uv__thread_start [/usr/local/bin/node]
4: _pthread_body [/usr/lib/system/libsystem_pthread.dylib]
5: _pthread_body [/usr/lib/system/libsystem_pthread.dylib]
6: thread_start [/usr/lib/system/libsystem_pthread.dylib]
The text was updated successfully, but these errors were encountered: