That's what the debugger is for
Yes. Sometimes just chucking a print is more convenient.
But yeah, debugger is your friend