launch.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Esp32 GDB",
  6. "type": "cppdbg",
  7. "request": "launch",
  8. "program": "",
  9. "args": [],
  10. "stopAtEntry": true,
  11. "cwd": "${workspaceFolder}",
  12. "environment": [],
  13. "externalConsole": true,
  14. "MIMode": "gdb"
  15. },
  16. {
  17. "name": "Host GDB",
  18. "type": "cppdbg",
  19. "request": "launch",
  20. "program": "",
  21. "args": [],
  22. "stopAtEntry": true,
  23. "cwd": "${workspaceFolder}",
  24. "environment": [],
  25. "externalConsole": false,
  26. "MIMode": "gdb",
  27. "setupCommands": [
  28. {
  29. "description": "Enable pretty-printing for gdb",
  30. "text": "-enable-pretty-printing",
  31. "ignoreFailures": true
  32. }
  33. ]
  34. },
  35. {
  36. "name": "Esp8266 GDB",
  37. "type": "cppdbg",
  38. "request": "launch",
  39. "program": "${workspaceFolder}/out/Esp8266/release/build/app_0.out",
  40. "args": [],
  41. "stopAtEntry": true,
  42. "cwd": "${workspaceFolder}",
  43. "environment": [],
  44. "externalConsole": true,
  45. "MIMode": "gdb",
  46. "miDebuggerPath": "${env:ESP_HOME}/xtensa-lx106-elf/bin/xtensa-lx106-elf-gdb.exe",
  47. "miDebuggerServerAddress": "COM5",
  48. "miDebuggerArgs": "-x ${env:SMING_HOME}/Arch/Esp8266/Components/gdbstub/gdbcmds -b 115200"
  49. }
  50. ]
  51. }