I'm trying to setup the configuration to attach to a remote C/C++ gdb target running gdbserver with visual studio code. Is this currently supported? If so, how do I get around these limitations:
The address and port options indicate that they aren't supported for C/C++.
I can force code to use the special remote enabled version of gdb, but its trying to run the target application locally and not connecting to the target gdbserver platform.
Will PowerPC remote targets be supported assuming I can solve #1 and #2?
This is a bit late, but I just set this up right now. I'm debugging an linux application running on a remote ARM device
I installed the Native Debug extension for VS Code.
Here is my launch.json configuration
"configurations": [
{
"type": "gdb",
"request": "attach",
"name": "Attach to gdbserver",
"executable": "<path to exe relative to workspace root>",
"target": "X.X.X.X:9999",
"remote": true,
"cwd": "${workspaceRoot}",
"gdbpath": "D:/gcc-ma/bin/arm-linux-gnueabihf-gdb.exe"
}]
So on my arm device running linux:
gdbserver localhost:9999 ./<application>
Then on windows, I attach to that server.
I have gdbpath set up because i need to use a version of gdb that understands arm. I got the correct windows binaries from here
I had lots of help along the way
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With