From c3e6980895f76b295d9eb43174618891290a2a8b Mon Sep 17 00:00:00 2001 From: Joachim Schwarm Date: Sun, 3 Oct 2021 22:23:26 +0200 Subject: [PATCH] nodemon: make --inspect a generic example (#6629) --- pages/common/nodemon.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/nodemon.md b/pages/common/nodemon.md index 7c2d0cb09a..be8ecd03e2 100644 --- a/pages/common/nodemon.md +++ b/pages/common/nodemon.md @@ -5,7 +5,7 @@ - Execute the specified file and watch a specific file for changes: -`nodemon --inspect {{path/to/file.js}}` +`nodemon {{path/to/file.js}}` - Manually restart nodemon (note nodemon must already be active for this to work): @@ -19,6 +19,10 @@ `nodemon {{path/to/file.js}} {{arguments}}` +- Pass arguments to node itself if they're not nodemon arguments already (e.g. `--inspect`): + +`nodemon {{arguments}} {{path/to/file.js}}` + - Run non-node scripts: `nodemon --exec "{{python --verbose}}" {{path/to/file.py}}`