Skip to content

Does/should the REPL support --inspect? #64121

Description

@vassudanagunta

Version

v26.3.0

Subsystem

REPL
debugger

What steps will reproduce the bug?

Run node --inspect and node --interactive --inspect with no script arg.

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

either:

$ node --inspect
node: REPL does not support --inspect

or:

$ node node --interactive --inspect
node: either --interactive or --inspect can be used, not both

similar to:

node --watch --check src/app.js
node: either --watch or --check can be used, not both

Even if it technically works, I can't see how it works in any useful way.

What do you see instead?

$ node --inspect
Debugger listening on ws://127.0.0.1:9229/d36505e9-1fcd-4b1f-b43e-0f2dd295526e
For help, see: https://nodejs.org/learn/getting-started/debugging
Welcome to Node.js v26.3.0.
Type ".help" for more information.
> 
$ node --interactive --inspect
Debugger listening on ws://127.0.0.1:9229/b6961d01-7632-4ec1-b091-ee6b9026513a
For help, see: https://nodejs.org/learn/getting-started/debugging
Welcome to Node.js v26.3.0.
Type ".help" for more information.
> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions