Does using the --inspect flag have any performance implications? #40365
Replies: 3 comments
-
@nodejs/diagnostics |
Beta Was this translation helpful? Give feedback.
-
If you don't have something you can benchmark yourself, and since your request is specifically for data over general sense, you might want to take a look at |
Beta Was this translation helpful? Give feedback.
-
enabling the inspector does not hurt perf but connecting to it tiers down all the wasm, and trying to step or pause js causes that js to tier down. |
Beta Was this translation helpful? Give feedback.
-
I'm configuring VS Code debugging for a Next.js app, and my initial thought was to just change our
dev
script in ourpackage.json
to beNODE_OPTIONS='--inspect' next dev
. This would obviously mean that anytime a dev ran our app, it would run with this flag, even if the dev didn't need to debug the Node process.I'm trying to determine whether using this flag has any performance implications, but the only "answers" I've found to this question are the two "feelings" expressed in this Stack Overflow question. Can anyone here provide a more evidence-based opinion?
Beta Was this translation helpful? Give feedback.
All reactions