in reply to debugging

Like others here I only use the debugger for interactive use.

Instead I rely on having lots of internal checks to catch mistakes early. Things like always checking return codes of system calls, validating input to programs, writing stubs, having a verbose mode I can turn on. Actually reading my code periodically.