Skip to content
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

Can't attach debugger #64

Open
michailw opened this issue Jan 4, 2019 · 5 comments
Open

Can't attach debugger #64

michailw opened this issue Jan 4, 2019 · 5 comments

Comments

@michailw
Copy link

michailw commented Jan 4, 2019

Hi,
I find impossible to configure node.js debugger with npm-watch. Could you please add that feature?

@M-Zuber
Copy link
Owner

M-Zuber commented Jan 23, 2019

Could you describe what you need in a bit more detail?
you want npm-watch itself to be listening for a debugger, or to enable it run commands that listen?

@michailw
Copy link
Author

I would like to enable it run commands that listen

@M-Zuber
Copy link
Owner

M-Zuber commented Feb 7, 2019

🤔 Do you happen to have a minimal script case that you would expect to work but doesn't?

@justinwilaby
Copy link

@michailw -

try this in a terminal with the cwd set to your project root:

node --inspect-brk=9222 ./node_modules/.bin/npm-watch

Then open chrome://inspect and attach to the debugger.

That should do it unless npm-watch spawns a new process for executing watch scripts.

@M-Zuber
Copy link
Owner

M-Zuber commented Jun 13, 2021

npm-watch does spawn new processes, but if I understood correctly, @michailw - your question is how to have npm-watch run a command where the command is listening for a debugger?

I have not managed to produce a test case, so I would appreciate it if you could send me a minimal case that you would expect to work, but it doesn't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants