docs/DEBUGGING_SAFETY.md
replay_drive process.replay_drive will start consuming messages.[!TIP] Add a Python breakpoint at the start of
replay_drive.pyto pause execution and give yourself time to attach LLDB.
Breakpoints can be set directly in modes/xxx.h (or any C file).
No extra LLDB commands are required — just place breakpoints in the editor.
Once attached, you can step through both Python (on the replay) and C safety code as CAN logs are replayed.
[!NOTE]
- Use short routes for quicker iteration.
- Pause
replay_driveearly to avoid wasting log messages.
View a demo of this workflow on the PR that added it: https://github.com/commaai/openpilot/pull/36055#issue-3352911578