Skip to content

Show more context lines in node inspect than the default 2 #41788

@cirosantilli

Description

@cirosantilli

Is there a way?

E.g. I currently see only:

Break on start in main.js:3
  1 #!/usr/bin/env node
  2 
> 3 x = 0;
  4 x = 1;
  5 x = 2;
debug> n
break in main.js:4
  2 
  3 x = 0;
> 4 x = 1;
  5 x = 2;
  6 x = 3;
debug>

on node v14.15.3.

I'll send a PR if this will be accepted.

More details at: https://stackoverflow.com/questions/64942914/how-to-increase-the-number-of-context-lines-shown-in-the-node-js-debugger-when-u

Metadata

Metadata

Assignees

No one assigned

    Labels

    debuggerIssues and PRs related to the debugger subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions