mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
* feat: add debugging configurations for replay drive and LLDB attachment * Add readme with video demo * clean * docs: update debugging safety documentation with demo link * no need for mp4 then added on PR * Update SConstruct * bump opendbc * updating readme * updating readme * updating readme * is this better / worth it? * final cleanups * hacky. but does it work? * Yep that worked! --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
85 lines
2.0 KiB
JSON
85 lines
2.0 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"inputs": [
|
|
{
|
|
"id": "python_process",
|
|
"type": "pickString",
|
|
"description": "Select the process to debug",
|
|
"options": [
|
|
"selfdrive/controls/controlsd.py",
|
|
"system/timed/timed.py",
|
|
"tools/sim/run_bridge.py"
|
|
]
|
|
},
|
|
{
|
|
"id": "cpp_process",
|
|
"type": "pickString",
|
|
"description": "Select the process to debug",
|
|
"options": [
|
|
"selfdrive/ui/ui"
|
|
]
|
|
},
|
|
{
|
|
"id": "args",
|
|
"description": "Arguments to pass to the process",
|
|
"type": "promptString"
|
|
},
|
|
{
|
|
"id": "replayArg",
|
|
"type": "promptString",
|
|
"description": "Enter route or segment to replay."
|
|
}
|
|
],
|
|
"configurations": [
|
|
{
|
|
"name": "Python: openpilot Process",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${input:python_process}",
|
|
"console": "integratedTerminal",
|
|
"justMyCode": true,
|
|
"args": "${input:args}"
|
|
},
|
|
{
|
|
"name": "C++: openpilot Process",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/${input:cpp_process}",
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"name": "Attach LLDB to Replay drive",
|
|
"type": "lldb",
|
|
"request": "attach",
|
|
"pid": "${command:pickMyProcess}",
|
|
"initCommands": [
|
|
"script import time; time.sleep(3)"
|
|
]
|
|
},
|
|
{
|
|
"name": "Replay drive",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/opendbc/safety/tests/safety_replay/replay_drive.py",
|
|
"args": [
|
|
"${input:replayArg}"
|
|
],
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false,
|
|
"env": {
|
|
"PYTHONPATH": "${workspaceFolder}"
|
|
},
|
|
"subProcess": true,
|
|
"stopOnEntry": false
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Replay drive + Safety LLDB",
|
|
"configurations": [
|
|
"Replay drive",
|
|
"Attach LLDB to Replay drive"
|
|
]
|
|
}
|
|
]
|
|
} |