{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "gdbtarget", "request": "attach", "name": "Eclipse CDT GDB Adapter" }, { "type": "gdb", "request": "attach", "name": "NativeDebug", "target": "extended-remote :3333", "executable": "${workspaceFolder}/build/${command:espIdf.getProjectName}.elf", "gdbpath": "${command:espIdf.getToolchainGdb}", "cwd": "${workspaceRoot}", "autorun": [ "mon reset halt", "maintenance flush register-cache", "thb app_main" ] }, { "name": "GDB", "type": "cppdbg", "request": "launch", "MIMode": "gdb", "miDebuggerPath": "${command:espIdf.getToolchainGdb}", "requireExactSource": true, "stopAtEntry": true, "program": "${workspaceFolder}/build/${command:espIdf.getProjectName}.elf", "windows": { "program": "${workspaceFolder}\\build\\${command:espIdf.getProjectName}.elf" }, "cwd": "${workspaceFolder}", "setupCommands": [ { "text": "set remotetimeout 20" }, ], "postRemoteConnectCommands": [ { "text": "mon reset halt" }, { "text": "maintenance flush register-cache"}, ], "externalConsole": false, "logging": { "engineLogging": true } }, { "type": "espidf", "name": "Launch", "request": "launch", "debugPort": 9998, "logLevel": 2, "mode": "manual", "verifyAppBinBeforeDebug": false, "tmoScaleFactor": 1, "initGdbCommands": [ "target remote :3333", "set remotetimeout 20", "symbol-file /path/to/program.elf", "mon reset halt", "maintenance flush register-cache", "thb app_main" ], "env": { "CUSTOM_ENV_VAR": "SOME_VALUE" } }, { "type": "gdbtarget", "request": "attach", "name": "Eclipse CDT Remote", "program": "${workspaceFolder}/build/${command:espIdf.getProjectName}.elf", "initCommands": [ "set remotetimeout 20", "set remote hardware-watchpoint-limit 2", "mon reset halt", "maintenance flush register-cache", "thb app_main", ], "gdb": "${command:espIdf.getToolchainGdb}", "target": { "port": "3333" }, } ] }