pwndbg_stepret
Single-step through instructions until a return instruction is reached, enabling precise analysis of function exit paths.
Instructions
Step to the next return instruction (single-steps until ret is found).
pwndbg command: stepret Source: pwndbg/commands/next.py Category: Step/Next/Continue
Unlike nextret which sets a breakpoint, this command single-steps through every instruction until a return instruction is reached.
Args: session_id: The UUID of the session. timeout: Maximum seconds to wait (default 30).
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/next/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |