Skip to content

Cannot use inspect in git-style mode #838

@renatocassino

Description

@renatocassino

Hello guys.
Isn't possible to use the debugger with inspect.

Example:

program
  .version(version)
  .command('command1', 'command').alias('c1')
  .parse(process.argv);

In file index-command1.js:

const a = 1;
debugger
const b = 2;

And run: node --inspect index.js command1.

I know that the git style is a child_process. But is possible to pass the --inspect to another command?

Thanks for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions