Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cirosantilli opened this issue Mar 13, 2021 · 2 comments
Closed

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

cirosantilli opened this issue Mar 13, 2021 · 2 comments
Labels
debugger Issues and PRs related to the debugger subsystem.

Comments

@cirosantilli
Copy link

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

@cirosantilli cirosantilli changed the title Show more context lines thatn the default 2 Show more context lines than the default 2 Mar 13, 2021
@jkrems
Copy link
Contributor

jkrems commented Jan 31, 2022

Hey @cirosantilli! Thanks for the suggestion and sorry for the late reply. I think it's likely that such a PR would be accepted though the code has since moved to the main nodejs/node repository.

Prior art in lldb: https://stackoverflow.com/questions/52274360/how-to-list-more-lines-of-code-code-in-lldb

@jkrems jkrems changed the title Show more context lines than the default 2 Show more context lines in node inspect than the default 2 Jan 31, 2022
@jkrems jkrems transferred this issue from nodejs/node-inspect Jan 31, 2022
@jkrems jkrems added the debugger Issues and PRs related to the debugger subsystem. label Jan 31, 2022
@cola119
Copy link
Member

cola119 commented Mar 26, 2023

Implemented in ##46812

@cola119 cola119 closed this as completed Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger Issues and PRs related to the debugger subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants