catch syscall write, then a condition on the fd. It worked. It was slow. strace -e would have been enough for this bug.
I used gdb because I already had a breakpoint I liked. Not a methodology.
catch syscall write
condition 1 $rdi == 3Refs: rr
Lab / educational. Public binaries and patched classes only. Isolated VM.