-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Is it possible to debug nodejs server with workers? #30197
Comments
@gsbelarus Are you talking about If it’s If it’s cluster workers, yes, that is possible. If necessary, you can manually specify a port using |
We use |
Seems it works for me:
|
PR-URL: #30594 Fixes: #30197 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
PR-URL: #30594 Fixes: #30197 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
PR-URL: #30594 Fixes: #30197 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
Is there any way of doing this now that ndb is dead/deprecated? ndb crashes for me and I really want a debugger in worker_threads |
Is it possible to debug workers? Every time I try, I get:
As soon as worker is created.
I use VS Code and
launch.json
looks like:I think, if it is NOT POSSIBLE at all, it should be printed with bold letters at the start of corresponding chapter of Nodejs docs. So, there will be no need to spend days searching internet for a solution which doesn't exist.
If there is a way, then it would be good to add it to official docs. As both nodejs and vscode web sites don't say a word about the topic.
I love Nodejs, but inability to debug workers code makes me mad ((
The text was updated successfully, but these errors were encountered: