-
Notifications
You must be signed in to change notification settings - Fork 116
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
honor debugger args for connect + attach #316
Conversation
additional: fix extended-remote without executable
hm this changes the order of arguments, the preargs are put before the executable now, I'm not sure if gdb arguments are fully unordered. |
The executable must be the last thing (if you don't use executable + pid, which we currently do via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
though please test this before merging.
I looked at this a little bit today and I believe the |
I was looking at this a bit more today to see how difficult it would be to fix the SSH scenario where the
The escaping done for the "SSH to Linux machine" scenario didn't work for the "SSH to Windows machine" scenario and vice versa. Any ideas on how this can be properly escaped for both scenarios over SSH? It doesn't seem like there should be 3 different versions of |
Thank you for investigating again!
Yes, that would be ideal. As there are more users there with the same problem I'd suggest to drop the "how to escape arguments passed to commands" at https://github.com/mscdex/ssh2/issues. For the "investigation issue part" - if I understand this correctly you've tested the changes and found it working everywhere this issue wants it to "connect + attach" with the exception of LMDB attach (where it should be easy to copy the changes from MI - but I can't test that it works there), correct? |
Hi @GitMensch, I found that it also doesn't work for SSH connections. I'm not sure if that was considered to be part of this change or not. I had to add the If you want to merge what you have, I can add support for those two remaining conditions in a separate PR (which is probably easier than me trying to apply changes to your current PR). With my proposed follow-on change, note that the |
Agreed. So looking forward for your SSH change (was not planned to be part) and LMDB fix (was an oversight). |
"should fix #206" - fair warning: untested