node icon indicating copy to clipboard operation
node copied to clipboard

Inspector not starting with --watch flag before

Open franzgollhammer opened this issue 10 months ago • 2 comments

Version

v22.0.0

Platform

Darwin 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64

Subsystem

No response

What steps will reproduce the bug?

Running a file with node --watch --inspect index.js will not start the inspector.

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

Order of flags --watch --inpect should not matter (like in node v21.x)

What do you see instead?

Inspector not starting on port :9229

Additional information

When changing the order of flags from node --watch --inspect to node --inspect --watch the inspector starts on port :9229 like expected.

franzgollhammer avatar Apr 26 '24 10:04 franzgollhammer

@MoLow

benjamingr avatar Apr 26 '24 20:04 benjamingr

I Will try taking a look next week. might be related to the changes in https://github.com/nodejs/node/pull/52358

MoLow avatar Apr 28 '24 06:04 MoLow