Skip to content

Commit

Permalink
pick process name to debug from a list
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Nov 4, 2024
1 parent da4ce94 commit 1b8cd1e
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@
"tools/sim/run_bridge.py"
]
},
{
"id": "python_process_name",
"type": "pickString",
"description": "Select the process to debug",
"options": [
"card",
"controlsd",
]
},
{
"id": "route",
"type": "promptString",
"description": "Route / segment",
},
{
"id": "cpp_process",
"type": "pickString",
Expand All @@ -27,20 +41,12 @@
],
"configurations": [
{
"name": "Replay carcontroler on route",
"type": "debugpy",
"request": "launch",
"program": "openpilot/selfdrive/debug/run_process_on_route.py",
"console": "integratedTerminal",
"args": ["${command:pickArgs}", "card"]
},
{
"name": "Replay controlsd on route",
"name": "Replay process on route",
"type": "debugpy",
"request": "launch",
"program": "openpilot/selfdrive/debug/run_process_on_route.py",
"console": "integratedTerminal",
"args": ["${command:pickArgs}", "controlsd"]
"args": ["${input:route}", "${input:python_process_name}",]
},
{
"name": "Python: openpilot Process",
Expand Down

0 comments on commit 1b8cd1e

Please sign in to comment.