Skip to content

Instantly share code, notes, and snippets.

@Pixep
Last active March 14, 2023 22:14
Show Gist options
  • Save Pixep/572ad6ae681f8f69d4b47c2144dc8fee to your computer and use it in GitHub Desktop.
Save Pixep/572ad6ae681f8f69d4b47c2144dc8fee to your computer and use it in GitHub Desktop.
Carbon Explorer debug config for VSCode
{
// 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