Files
visual_debugger/.vscode/launch.json
mynameisdeleted 5f5599009c Add Rust and C++ linked list implementations with build/debug configs
Rust version in src/main.rs (Cargo project) and a C++ port in cpp/main.cpp
using raw pointers, both with VS Code build tasks and gdb-based debug
configs. Vendors vscode-debug-visualizer and visualization as submodules
for reference while building a custom node-table graph visualizer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 08:05:08 -04:00

58 lines
2.0 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
}
]
},
{
"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
}
]
}
]
}