Problem starting gdb on VS code
Posted: Wed Feb 19, 2020 10:17 pm
Hi,
I get an error pop-up when trying to launch gdb.
It says " Failed to load MI Debugger: Error: write EPIPE"
I can run it in the terminal and connect to OCD successfully. It was working in the past so I'm wondering if an update broke it.
Anyone know what this means?
Cheers,
Felix
https://imgur.com/sMCeZrh
My launch.json:
I get an error pop-up when trying to launch gdb.
It says " Failed to load MI Debugger: Error: write EPIPE"
I can run it in the terminal and connect to OCD successfully. It was working in the past so I'm wondering if an update broke it.
Anyone know what this means?
Cheers,
Felix
https://imgur.com/sMCeZrh
My launch.json:
Code: Select all
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Program",
"type": "gdb",
"request": "launch",
"target": "./build/${workspaceFolderBasename}.elf",
"cwd": "${workspaceFolder}",
"gdbpath": "xtensa-esp32-elf-gdb",
"autorun": [
"target remote :3333",
"mon reset halt",
"flushregs",
"thb app_main",
"c"
],
"preLaunchTask": "openocd",
"postDebugTask": "killopenocd"
}
]
}