feat(debug): add GDB-based debug visualizer for linked lists
Replace the custom toDebugGraph() method that generated JSON directly in C++ with a generic GDB Python script (debug_graph.py). The script traverses pointers and structures to build a graph representation for the VS Code Debug Visualizer, enabling external pointer display and more extensible visualization.
Update launch configurations to load the script and to disable array/string truncation (needed for the visualizer JSON). Add a debugAdapterConfigurations entry in settings.json to use the expression template $debug_graph(${expr}) for the cppdbg adapter.
This commit is contained in:
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@@ -1,5 +1,10 @@
|
||||
{
|
||||
"debugVisualizer.customVisualizerScriptPaths": [
|
||||
"${workspaceFolder}/vis-plugins/node-table-visualizer.js"
|
||||
]
|
||||
],
|
||||
"debugVisualizer.debugAdapterConfigurations": {
|
||||
"cppdbg": {
|
||||
"expressionTemplate": "$debug_graph(${expr})"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user