Skip to content

Reuse attached DevTools to re-execute a watched file #61126

@cdoublev

Description

@cdoublev

What is the problem this feature will solve?

When executing a file with node and --watch and --inspect-brk or --inspect-wait to inspect the code in DevTools, NodeJS waits for DevTools to be detached before executing the file again after a modification. The user must therefore close this DevTools window and open a new one that will listen for the new process.

What is the feature you are proposing to solve the problem?

I would like the same DevTools window to be used to attach the new process.

What alternatives have you considered?

None, I would say...

I replaced Jest with node:test in a project and encountered this behavior when trying to inspect a file while running a test.

And that seems possible in Deno: denoland/deno#20660

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.inspectorIssues and PRs related to the V8 inspector protocol

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions