Autogenerating Launch.json file
Step 1: Auto-generate a launch.json Configuration
launch.json ConfigurationjsonCopy code{ "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", "program": "${fileDirname}/${fileBasenameNoExtension}", "args": [], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], "externalConsole": false, "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ], "preLaunchTask": "build", // Automatically references the "build" task from tasks.json "miDebuggerPath": "/usr/bin/gdb", "logging": { "trace": true, "traceResponse": true, "engineLogging": true } } ] }
Step 2: Review and Customize the Configuration
Step 3: Save and Use
Summary
Last updated