Nodemon inspect/debug not working?
SOLVED,
It seems like [email protected]
was not passing in this argument. There is a newer version available 1.12.7
where everything works fine and well.
Answer source: Nodemon Issues - Github
nodemon --inspect app.js
The .js part is absolutely necessary.
For people coming from search engines, there could be a bug related to nodemon and ts-node.
Error: Unknown or unexpected option: --inspect
This can be a way to use inspect with nodemon:
nodemon --exec 'node --inspect=0.0.0.0:9229 --require ts-node/register src/index.ts'
For more information see here