launch.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "(gdb) 启动",
  9. "type": "cppdbg",
  10. "request": "launch",
  11. //"program": "输入程序名称,例如 ${workspaceFolder}/a.exe",
  12. "program": "${fileDirname}\\main.exe",
  13. "args": [],
  14. "stopAtEntry": false,
  15. "cwd": "${fileDirname}",
  16. "environment": [],
  17. "externalConsole": false,
  18. "MIMode": "gdb",
  19. //"miDebuggerPath": "/path/to/gdb",
  20. "miDebuggerPath": "C:\\Program Files\\mingw64\\bin\\gdb.exe",
  21. "setupCommands": [
  22. {
  23. "description": "为 gdb 启用整齐打印",
  24. "text": "-enable-pretty-printing",
  25. "ignoreFailures": true
  26. },
  27. {
  28. "description": "将反汇编风格设置为 Intel",
  29. "text": "-gdb-set disassembly-flavor intel",
  30. "ignoreFailures": true
  31. }
  32. ]
  33. }
  34. ]
  35. }