level 3
{ // 配置名称,在启动配置下拉菜单中显示 "name": "(gdb) Launch", // 调试会话开始前要运行的任务 "preLaunchTask": "build", "type": "cppdbg", // 请求配置类型,可以为启动(launch)或附加(attach) "request": "launch", // 将要进行调试的程序的路径 "program": "${fileDirname}/${fileBasenameNoExtension}.exe", "args": [], // 设为true时程序将暂停在程序入口处,一般设置为false "stopAtEntry": false, // 调试程序时的工作目录,一般为${workspaceFolder}即代码所在目录 "cwd": "${workspaceFolder}", "environment": [], // 调试时是否显示控制台窗口,一般设置为true显示控制台 "externalConsole": true, "MIMode": "gdb", // GDB的路径,注意替换成自己的位置中的 gdb "miDebuggerPath": "D://mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/bin/gcc.exe", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ] } ] }
2019年10月11日 03点10分
