Last active
March 14, 2023 22:14
-
-
Save Pixep/572ad6ae681f8f69d4b47c2144dc8fee to your computer and use it in GitHub Desktop.
Carbon Explorer debug config for VSCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug file", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/bazel-bin/explorer/explorer", | |
"args": ["${file}"], | |
"stopAtEntry": false, | |
"cwd": "${workspaceRoot}", | |
"environment": [], | |
"externalConsole": false, | |
"MIMode": "gdb", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
}, | |
{ | |
"description": "Set Disassembly Flavor to Intel", | |
"text": "-gdb-set disassembly-flavor intel", | |
"ignoreFailures": true | |
} | |
] | |
}, | |
{ | |
"name": "Debug file & trace", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/bazel-bin/explorer/explorer", | |
"args": [ | |
"--trace_file=-", "${file}"], | |
"stopAtEntry": false, | |
"cwd": "${workspaceRoot}", | |
"environment": [], | |
"externalConsole": false, | |
"MIMode": "gdb", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
}, | |
{ | |
"description": "Set Disassembly Flavor to Intel", | |
"text": "-gdb-set disassembly-flavor intel", | |
"ignoreFailures": true | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment