-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Comments
I am working on this. Kerry Lynn kerlyn@ieee.org |
@kerlyn-bsd3 any progress on this? Let me know if you run into any issues or have any questions. |
Sorry, been swamped at work. Should have a PR tonight or tomorrow. |
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? |
@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. |
`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
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
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
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
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
* [#176045815] Setup forestadmin for develop * [#176045815] Created the infra for staging and production * Fixed up infra files
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
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.
The text was updated successfully, but these errors were encountered: