When a breakpoint is triggered, how should I use a script function to print each member of a std::vector pointed to by the rcx register?
To print each member of a std::vector pointed to by the rcx register when a breakpoint is triggered, you need to understand the memory layout of std::vector and use x64dbg's scripting capabilities with breakpoint commands.
1. Set up a breakpoint command