ESP32 debug遇到问题

3323ttt
Posts: 2
Joined: Fri May 17, 2024 7:35 am

ESP32 debug遇到问题

Postby 3323ttt » Mon May 20, 2024 9:35 am

ESP32-S2 在使用ESP-Prog debug时遇到问题 不清除该如何解决 这是我第一次使用VSCode+ESP-IDF开发ESP32,希望大佬能帮忙解答一下
运行debug的时候提示
Unable to start debugging.Unexpected GDB output from command-interpreter-execconsole“targetremote:3333"".Remote connection closed.
launch.json文件内容如下
{
"version": "0.2.0",
"configurations": [
{
"name": "ESP32-S2 DEBUG",
"type": "cppdbg",
"request": "launch",
"MIMode": "gdb",
"miDebuggerPath": "${command:espIdf.getXtensaGdb}",
"program": "${workspaceFolder}/build/${command:espIdf.getProjectName}.elf",
"windows": {
"program": "${workspaceFolder}\\build\\${command:espIdf.getProjectName}.elf"
},
"cwd": "${workspaceFolder}",
"environment": [{ "name": "PATH", "value": "${config:idf.customExtraPaths}" }],
"setupCommands": [
{ "text": "target remote :3333" },
{ "text": "set remote hardware-watchpoint-limit 2"},
{ "text": "mon reset halt" },
{ "text": "thb app_main" },
{ "text": "flushregs" }
],
"externalConsole": false,
"logging": {
"engineLogging": true
}
}
]
}

Who is online

Users browsing this forum: No registered users and 193 guests