feat(debug): add Python debug visualizer and enhance gdb integration

This commit is contained in:
mynameisdeleted
2026-07-09 16:08:01 -04:00
parent 67e9a0d488
commit 4f693f8cff
9 changed files with 17 additions and 11 deletions

7
.vscode/launch.json vendored
View File

@@ -32,7 +32,7 @@
},
{
"description": "Load the generic $debug_graph(...) Debug Visualizer helper",
"text": "source ${workspaceFolder}/gdb/debug_graph.py",
"text": "source ${workspaceFolder}/debuggers/gdb_debug_graph.py",
"ignoreFailures": false
}
]
@@ -43,6 +43,9 @@
"request": "launch",
"program": "${workspaceFolder}/python/main.py",
"cwd": "${workspaceFolder}/python",
"env": {
"PYTHONPATH": "${workspaceFolder}/debuggers"
},
"console": "integratedTerminal",
"justMyCode": true
},
@@ -77,7 +80,7 @@
},
{
"description": "Load the generic $debug_graph(...) Debug Visualizer helper",
"text": "source ${workspaceFolder}/gdb/debug_graph.py",
"text": "source ${workspaceFolder}/debuggers/gdb_debug_graph.py",
"ignoreFailures": false
}
]

View File

@@ -7,7 +7,7 @@
"expressionTemplate": "$debug_graph(${expr})"
},
"debugpy": {
"expressionTemplate": "__import__('debug_graph').debug_graph(${expr})"
"expressionTemplate": "__import__('py_debug_graph').debug_graph(${expr})"
}
}
}