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

Add command to list current location in source #58

Closed
derekparker opened this issue Feb 5, 2015 · 5 comments
Closed

Add command to list current location in source #58

derekparker opened this issue Feb 5, 2015 · 5 comments

Comments

@derekparker
Copy link
Member

When stopped in a debug session, have a command to show source code around the current location this (or any arbitrary) thread is stopped at. Should have a default (5 lines above/below or similar) but also accept an argument to display more source code context.

@kerlyn-bsd3
Copy link

I am working on this. Kerry Lynn kerlyn@ieee.org

@derekparker
Copy link
Member Author

@kerlyn-bsd3 any progress on this? Let me know if you run into any issues or have any questions.

@kerlyn-bsd3
Copy link

Sorry, been swamped at work. Should have a PR tonight or tomorrow.

@quarnster
Copy link

Isn't this almost working already? Stopping appears to print the source code so there's just missing a "list" command for manual source print?

@derekparker
Copy link
Member Author

@quarnster correct. The part this is not implemented yet, however, is the ability to print out sections of different source files outside of your current position. There's infrastructure there for adding the latter, it just hasn't been strung together yet.

joeshaw added a commit to joeshaw/delve that referenced this issue Jul 29, 2015
`list` by itself shows code around the current context.  `list
file.go:100` displays code from `file.go` around line 100.

Fixes go-delve#58
joeshaw added a commit to joeshaw/delve that referenced this issue Aug 11, 2015
Without arguments, `list` displays source around the current context.  A
linespec argument can be taken to display source around that location.

Fixes go-delve#58
joeshaw added a commit to joeshaw/delve that referenced this issue Aug 11, 2015
Without arguments, `list` displays source around the current context.  A
linespec argument can be taken to display source around that location.

Fixes go-delve#58
joeshaw added a commit to joeshaw/delve that referenced this issue Aug 13, 2015
Without arguments, `list` displays source around the current context.  A
linespec argument can be taken to display source around that location.

Fixes go-delve#58
joeshaw added a commit to joeshaw/delve that referenced this issue Aug 13, 2015
Without arguments, `list` displays source around the current context.  A
linespec argument can be taken to display source around that location.

Fixes go-delve#58
nclifton pushed a commit to nclifton/delve that referenced this issue Feb 24, 2021
* [#176045815] Setup forestadmin for develop

* [#176045815] Created the infra for staging and production

* Fixed up infra files
abner-chenc pushed a commit to loongson/delve that referenced this issue Mar 1, 2024
Without arguments, `list` displays source around the current context.  A
linespec argument can be taken to display source around that location.

Fixes go-delve#58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants