launch.json 955 B

123456789101112131415161718192021222324252627282930
  1. {
  2. "configurations": [
  3. {
  4. "name": "(gdb) 启动",
  5. "type": "cppdbg",
  6. "request": "launch",
  7. "program": "输入程序名称,例如 ${workspaceFolder}/a.exe",
  8. "args": [],
  9. "stopAtEntry": false,
  10. "cwd": "${fileDirname}",
  11. "environment": [],
  12. "externalConsole": false,
  13. "MIMode": "gdb",
  14. "miDebuggerPath": "/path/to/gdb",
  15. "setupCommands": [
  16. {
  17. "description": "为 gdb 启用整齐打印",
  18. "text": "-enable-pretty-printing",
  19. "ignoreFailures": true
  20. },
  21. {
  22. "description": "将反汇编风格设置为 Intel",
  23. "text": "-gdb-set disassembly-flavor intel",
  24. "ignoreFailures": true
  25. }
  26. ]
  27. }
  28. ],
  29. "version": "2.0.0"
  30. }