launch.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. // {
  5. // "name": "Attach Arm",
  6. // "type": "gdb",
  7. // "request": "attach",
  8. // "gdbpath": "/usr/bin/gdb-multiarch",
  9. // "executable": "${workspaceFolder}/bin/ctnd",
  10. // "target": "192.168.0.137:2345",
  11. // "remote": true,
  12. // "printCalls": true,
  13. // "cwd": "${workspaceRoot}/shell/",
  14. // "valuesFormatting": "parseText"
  15. // },
  16. {
  17. "name": "(gdb) Attach Remote",
  18. "type": "cppdbg",
  19. "request": "attach",
  20. "targetArchitecture": "arm",
  21. "miDebuggerServerAddress": "192.168.0.137:2345",
  22. "miDebuggerPath": "/usr/bin/gdb-multiarch",
  23. "useExtendedRemote": true,
  24. "program": "${workspaceFolder}/bin/ctnd",
  25. "MIMode": "gdb",
  26. "setupCommands": [
  27. {
  28. "description": "Enable pretty-printing for gdb",
  29. "text": "-enable-pretty-printing",
  30. "ignoreFailures": true
  31. },
  32. {
  33. "description": "Set Disassembly Flavor to Intel",
  34. "text": "-gdb-set disassembly-flavor intel",
  35. "ignoreFailures": true
  36. },
  37. {
  38. "text": "-gdb-set follow-fork-mode child"
  39. },
  40. {
  41. // https://sourceware.org/gdb/onlinedocs/gdb/Forks.html
  42. "description": "Fork will keep the other process attached to debugger",
  43. "text": "set detach-on-fork off",
  44. "ignoreFailures": true
  45. }
  46. ]
  47. },
  48. {
  49. "name": "(gdb) Attach",
  50. "type": "cppdbg",
  51. "request": "attach",
  52. "program": "${workspaceFolder}/bin/ctnd",
  53. "MIMode": "gdb",
  54. "setupCommands": [
  55. {
  56. "description": "Enable pretty-printing for gdb",
  57. "text": "-enable-pretty-printing",
  58. "ignoreFailures": true
  59. },
  60. {
  61. "description": "Set Disassembly Flavor to Intel",
  62. "text": "-gdb-set disassembly-flavor intel",
  63. "ignoreFailures": true
  64. }
  65. ]
  66. },
  67. {
  68. "name": "(gdb) Launch",
  69. "type": "cppdbg",
  70. "request": "launch",
  71. "program": "${workspaceFolder}/bin/ctnd",
  72. "args": [
  73. "-t",
  74. "appl",
  75. ],
  76. "stopAtEntry": true,
  77. "cwd": "${workspaceFolder}/shell/",
  78. "environment": [],
  79. "externalConsole": false,
  80. "MIMode": "gdb",
  81. "miDebuggerPath": "/usr/bin/gdb",
  82. "setupCommands": [
  83. {
  84. "description": "Enable pretty-printing for gdb",
  85. "text": "-enable-pretty-printing",
  86. "ignoreFailures": true
  87. },
  88. {
  89. "description": "Set Disassembly Flavor to Intel",
  90. "text": "-gdb-set disassembly-flavor intel",
  91. "ignoreFailures": true
  92. },
  93. {
  94. "text": "-gdb-set follow-fork-mode child"
  95. },
  96. {
  97. // https://sourceware.org/gdb/onlinedocs/gdb/Forks.html
  98. "description": "Fork will keep the other process attached to debugger",
  99. "text": "set detach-on-fork off",
  100. "ignoreFailures": true
  101. }
  102. ]
  103. }
  104. ]
  105. }