-
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
Allow users to show the arguments of current debugged like gdb show args
#2242
Comments
|
another problem with |
os.Args needs to be initialized by the go runtime so it won't be available immediately after starting a program. Also, as you note, you can't read it after the program has quit. But features have a complexity cost and I don't think it's worth paying it to cover this edge cases. |
To run 'p os.Args' at breakpoint 'main.main' may meet your needs. @llhuii |
When attaching to child processes in follow exec mode, read their command line. Use it to match the follow exec regexp and also display it in the traget list. Updates go-delve#2242
When attaching to child processes in follow exec mode, read their command line. Use it to match the follow exec regexp and also display it in the traget list. Updates go-delve#2242
When attaching to child processes in follow exec mode, read their command line. Use it to match the follow exec regexp and also display it in the traget list. Updates go-delve#2242
When attaching to child processes in follow exec mode, read their command line. Use it to match the follow exec regexp and also display it in the traget list. Updates go-delve#2242
… proc,terminal: read command line of new processes When attaching to child processes in follow exec mode, read their command line. Use it to match the follow exec regexp and also display it in the traget list. Updates go-delve#2242
Read the command line of the main target process as well as any other process Delve attaches to in follow exec mode. The command line can be viewed using the 'target list' command. In follow exec mode this command line is used to match the follow exec regex to decide whether or not to attach to a child process. On macOS or when using rr the list of arguments is not available for attached processes since there is no way to use the gdb serial protocol to read it. Fixes go-delve#2242
Read the command line of the main target process as well as any other process Delve attaches to in follow exec mode. The command line can be viewed using the 'target list' command. In follow exec mode this command line is used to match the follow exec regex to decide whether or not to attach to a child process. On macOS or when using rr the list of arguments is not available for attached processes since there is no way to use the gdb serial protocol to read it. Fixes go-delve#2242
… proc,terminal: read command line of new processes When attaching to child processes in follow exec mode, read their command line. Use it to match the follow exec regexp and also display it in the traget list. Updates go-delve#2242
Read the command line of the main target process as well as any other process Delve attaches to in follow exec mode. The command line can be viewed using the 'target list' command. In follow exec mode this command line is used to match the follow exec regex to decide whether or not to attach to a child process. On macOS or when using rr the list of arguments is not available for attached processes since there is no way to use the gdb serial protocol to read it. Fixes #2242
Now dlv has no method to show the arguments of current debugged program in the dlv interactive cmd.
Can we add a command to show current running arguments like gdb
show args
?The text was updated successfully, but these errors were encountered: