90 lines
3.4 KiB
JSON
90 lines
3.4 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Debug list_example (Rust)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/target/debug/list_example",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"miDebuggerPath": "/usr/bin/rust-gdb",
|
|
"preLaunchTask": "cargo build",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "Don't truncate long arrays (needed for Debug Visualizer JSON)",
|
|
"text": "-gdb-set print elements 0",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "Don't truncate long strings (needed for Debug Visualizer JSON)",
|
|
"text": "-gdb-set print characters 0",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "Load the generic $debug_graph(...) Debug Visualizer helper",
|
|
"text": "source ${workspaceFolder}/debuggers/gdb_debug_graph.py",
|
|
"ignoreFailures": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Debug list_example (Python)",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/python/main.py",
|
|
"cwd": "${workspaceFolder}/python",
|
|
"env": {
|
|
"PYTHONPATH": "${workspaceFolder}/debuggers"
|
|
},
|
|
"console": "integratedTerminal",
|
|
"justMyCode": true
|
|
},
|
|
{
|
|
"name": "Debug list_example (C++)",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/cpp/list_example_cpp",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"cwd": "${workspaceFolder}/cpp",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"miDebuggerPath": "/usr/bin/gdb",
|
|
"preLaunchTask": "g++ build cpp/main.cpp",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "Don't truncate long arrays (needed for Debug Visualizer JSON)",
|
|
"text": "-gdb-set print elements 0",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "Don't truncate long strings (needed for Debug Visualizer JSON)",
|
|
"text": "-gdb-set print characters 0",
|
|
"ignoreFailures": true
|
|
},
|
|
{
|
|
"description": "Load the generic $debug_graph(...) Debug Visualizer helper",
|
|
"text": "source ${workspaceFolder}/debuggers/gdb_debug_graph.py",
|
|
"ignoreFailures": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|