-
Notifications
You must be signed in to change notification settings - Fork 122
Enhancement for extended-remote target #91
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
Comments
Nvm, I am going to remove that escape there because the user should have control over the target if he starts it with extended-remote already |
It would not work if you put the parameter after extended-remote in quotes, even if properly escaped with backslashes ;). The escape() is fine, though. |
The escape will replace " with \" and replace \ with \\, so unless in quotes it will break things |
Is a extended-remote support now possible with native debug? I still can not get a setup with a working "restart" functionality in the VS Code debugger. If I am wrong, how would a correct On the target I start My launch.json:
|
here is the example config I added with the commit: 318ece4#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R373 if you have more questions, make a separate issue |
Thank you for your quick reply. Unfortunately this config for Microcontrollers does not help. I use a target running an embedded OS build with buildroot. I will open a new issue with more information. --> #183 |
This extends gdb launch configurations to support extended-remote. It can be used for remote debugging where code is compiled on host, and transferred and debugged on target using a remote gdbserver (or something else speaking GDB/MI). Note, this is not touching the code added in commit 318ece4 ("Added special commands for extended-remote fix WebFreak001#91"), as that is only related to gdb attach configuration, although the example in package.json is confusingly put with launch, which is opposite of the code change. I did not fixup that change, as I am not sure exactly what to put instead.
This extends gdb launch configurations to support extended-remote. It can be used for remote debugging where code is compiled on host, and transferred and debugged on target using a remote gdbserver (or something else speaking GDB/MI). Note, this is not touching the code added in commit 318ece4 ("Added special commands for extended-remote fix WebFreak001#91"), as that is only related to gdb attach configuration, although the example in package.json is confusingly put with launch, which is opposite of the code change. I did not fixup that change, as I am not sure exactly what to put instead.
This extends gdb launch configurations to support extended-remote. It can be used for remote debugging where code is compiled on host, and transferred and debugged on target using a remote gdbserver (or something else speaking GDB/MI). Note, this is not touching the code added in commit 318ece4 ("Added special commands for extended-remote fix WebFreak001#91"), as that is only related to gdb attach configuration, although the example in package.json is confusingly put with launch, which is opposite of the code change. I did not fixup that change, as I am not sure exactly what to put instead.
This extends gdb launch configurations to support extended-remote. It can be used for remote debugging where code is compiled on host, and transferred and debugged on target using a remote gdbserver (or something else speaking GDB/MI). Note, this is not touching the code added in commit 318ece4 ("Added special commands for extended-remote fix WebFreak001#91"), as that is only related to gdb attach configuration.
Hi @WebFreak001! Great work on your VS Code plugin! I am trying to replace the dreaded Eclipse for debugging microcontrollers and stumbled upon VS Code and Native Debug. However, the configuration options available did not support the extended-remote target of GDB, which would be nice to have for some debugging hardware.
The following is a works-for-me style hack that enables me to happily debug Cortex M microcontrollers using an external USB debugger like Black Magic Probe:
backend/mi2/mi2.js:176 ff.
launch.json:
The text was updated successfully, but these errors were encountered: