-
Notifications
You must be signed in to change notification settings - Fork 31
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
Debug using Devtools for Node #19
Comments
Hi @MattijsE , I was looking for this too and just found a solution that works for me ;-) You can do it with
As you can see, you must replace After you run this new script, you can open chrome://inspect/#devices and click in Best regards, |
Hi @fsanzv, |
I think this is working for me in WebStorm:
The %NODE_DEBUG_OPTION% just puts --inspect or --inspect-brk in if you select the "Debug" button instead of run, but you could easily make "dev:inspect" and "test:inspect" npm tasks as @fsanzv did above as well. |
Algo got it working in VSCode.
Now you can debug using VSCode to set breakpoints and watch variables. |
Is it possible to add support for debugging with the 'npm run dev' command?
I can't see to make it work using
--inspect
or --inspect -r ts-node/register Index.ts
.Maybe it's some issue with the combination of nodemon and ts-node.
Debugging support make it so easy to debug issues.
The text was updated successfully, but these errors were encountered: