launch.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Debug @ Mac/Linux",
  6. "type": "cppdbg",
  7. "request": "launch",
  8. "program": "${workspaceRoot}/rtthread.elf",
  9. "args": [],
  10. "stopAtEntry": true,
  11. "cwd": "${workspaceRoot}",
  12. "environment": [],
  13. "externalConsole": true,
  14. "miDebuggerServerAddress": "localhost:1234",
  15. "serverLaunchTimeout": 2000,
  16. "targetArchitecture": "ARM",
  17. "setupCommands": [
  18. {
  19. "text": "cd ${workspaceRoot}"
  20. },
  21. {
  22. "text": "shell qemu-dbg.sh"
  23. },
  24. {
  25. "text": "target remote localhost:1234"
  26. },
  27. {
  28. "text": "file rtthread.elf"
  29. },
  30. {
  31. "text": "break application_start"
  32. }
  33. ],
  34. "customLaunchSetupCommands": [],
  35. "launchCompleteCommand": "exec-run",
  36. "preLaunchTask": "qemu debug",
  37. "osx": {
  38. "MIMode": "gdb",
  39. "miDebuggerPath": "arm-none-eabi-gdb"
  40. },
  41. "linux": {
  42. "MIMode": "gdb",
  43. "miDebuggerPath": "arm-none-eabi-gdb"
  44. },
  45. "windows": {
  46. "MIMode": "gdb",
  47. "miDebuggerPath": "arm-none-eabi-gdb.exe"
  48. }
  49. },
  50. {
  51. "name": "Debug @ Windows",
  52. "type": "cppdbg",
  53. "request": "launch",
  54. "program": "${workspaceRoot}\\rtthread.elf",
  55. "args": [],
  56. "stopAtEntry": true,
  57. "cwd": "${workspaceRoot}",
  58. "environment": [],
  59. "externalConsole": true,
  60. "miDebuggerServerAddress": "localhost:1234",
  61. "serverLaunchTimeout": 2000,
  62. "targetArchitecture": "ARM",
  63. "setupCommands": [
  64. {
  65. "text": "cd ${workspaceRoot}"
  66. },
  67. {
  68. "text": "shell qemu-dbg.bat"
  69. },
  70. {
  71. "text": "target remote localhost:1234"
  72. },
  73. {
  74. "text": "file rtthread.elf"
  75. },
  76. {
  77. "text": "break main"
  78. }
  79. ],
  80. "customLaunchSetupCommands": [],
  81. "launchCompleteCommand": "exec-run",
  82. "osx": {
  83. "MIMode": "gdb",
  84. "miDebuggerPath": "arm-none-eabi-gdb"
  85. },
  86. "linux": {
  87. "MIMode": "gdb",
  88. "miDebuggerPath": "arm-none-eabi-gdb"
  89. },
  90. "windows": {
  91. "MIMode": "gdb",
  92. "miDebuggerPath": "arm-none-eabi-gdb.exe"
  93. }
  94. },
  95. ]
  96. }