//launch.json
1"version": "0.2.0", 2 "configurations": [ 3 { 4 "name": "(gdb) Launch", 5 "type": "cppdbg", 6 "request": "launch", 7 "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", 8 "args": [], 9 "stopAtEntry": false, 10 "cwd": "${fileDirname}", 11 "environment": [], 12 "externalConsole": false, 13 "MIMode": "gdb", 14 "miDebuggerPath": "C:\\Program Files\\mingw64\\bin\\gdb.exe", 15 "setupCommands": [ 16 { 17 "description": "Enable pretty-printing for gdb", 18 "text": "-enable-pretty-printing", 19 "ignoreFailures": true 20 }, 21 { 22 "description": "Set Disassembly Flavor to Intel", 23 "text": "-gdb-set disassembly-flavor intel", 24 "ignoreFailures": true 25 } 26 ] 27 }, 28 ]
//tasks.json
1 "tasks": [ 2 { 3 "type": "cppbuild", 4 "label": "C/C++: g++.exe build active file", 5 "command": "C:\\Program Files\\mingw64\\bin\\g++.exe", 6 "args": [ 7 "-fdiagnostics-color=always", 8 "-g", 9 "-std=c++17", 10 "${fileDirname}\\*.cpp", 11 "-o", 12 "${fileDirname}\\${fileBasenameNoExtension}.exe" 13 ], 14 "options": { 15 "cwd": "${fileDirname}" 16 }, 17 "problemMatcher": [ 18 "$gcc" 19 ], 20 "group": { 21 "kind": "build", 22 "isDefault": true 23 }, 24 "detail": "Task generated by Debugger." 25 } 26 ], 27 "version": "2.0.0"
