-
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
Exit from attached process without prompt #2324
Comments
I'm skeptical that pressing two keys "slows the debugging flow a lot" |
:) maybe 'a lot' is a too strong word, I agree. Since I'm always answering the same answer to If this is not interesting enhancement, you can close the issue. |
I think it would be reasonable to add arguments to the |
Is it OK to reuse the same Then I would look how to extend alias mechanism to allow command+arguments. |
It would be ambiguous, when connected to a headless instance attached to a process would |
So then new argument should be implemented, if this one is ambiguous. |
Hi, I have another use-case for something like this. Im currently automating the deployment of a daemonised application in "debug mode", where it runs as normal, but is wrapped in a headless delve server which allows clients to connect debug clients remotely. Directly after starting the headless server (as part of an automated script), I want my application (the daemon) to immediately begin executing like it normally would, so after I call
However, because the client requires human input ( I'd be very much in favour of a |
If I understand correctly your use case can be solved already via |
I would most likely accept a patch which implements this feature if folks feel strongly enough about it. |
(Sorry, clicked wrong button and did not mean to close). |
Hi I would like this feature too. I'd like to write a script that automates generating a list of functions for me. Something like:
And then I can attach to the binary and do
|
When using dlv attach to debug local running process, it's really annoying to answer the prompt
Would you like to kill the process? [Y/n]
It slows the debugging flow a lot and this question is not something critical when debugging a local process.
I propose that config param is introduced which could set allow user that prefers not to kill running process.
Already did some implementation which introduces config param
soft-detach: true
If param is true it will skip the
yesno
question, and will exit from dlv without killing the process.If this is something that could be useful, I can submit PR request, but wanted to discuss this enhancement here first.
The text was updated successfully, but these errors were encountered: