You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have some example about the use of execArgs, I'm trying to use nodemon config file without a --inspect-brk configuration flag in "exec" option, and passing it trough npm script, but I can't figure it out how to do it.
You can't do this on the command line - put simply: nodemon is running two commands that take arguments: the exec (node in this case) and the user script.
So nodemon errs on the side of the user code and passes it to the script.
When the exec is node (bare) then there's hacks to attempt to pass known args to node, but this isn't the case for your code.
I'd be inclined to do something like this (though you'll need to experiment since I'm not a typescript user):
Do you have some example about the use of execArgs, I'm trying to use nodemon config file without a
--inspect-brk
configuration flag in "exec" option, and passing it trough npm script, but I can't figure it out how to do it.nodemon.json
package.json
This is what I see when run the script
It looks like the config flag is passed, but the debugger doesn't start
[nodemon] starting
node -r ts-node/register src/index.ts --inspect-brk
It only work if I write it on nodemon.json file like this:
"exec": "node --inspect-brk -r ts-node/register src/index.ts",
Could somebody give me some clue?
The text was updated successfully, but these errors were encountered: