collect_bp_args
Trace repeated function calls by collecting a memory expression at each breakpoint hit, with default support for reading wchar_t* arguments from the x86 stack.
Instructions
Continue execution in a loop, collecting a memory expression at each breakpoint hit. Use this to trace repeated calls (e.g. AddMoudle, GetClassObject). The default expr 'ptr_utf16@[esp+4]' reads a wchar_t* arg from the x86 stack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID | |
| expr | No | Expression to read at each hit: 'ptr_utf16@[esp+4]' (default), 'utf16@<addr>', or any numeric x64dbg expr | |
| maxHits | No | Stop after this many hits (default 200) | |
| timeoutSec | No | Per-hit timeout in seconds (default 10) |