That's why you need to be a bug hunting master.
Step 1: Look for things that go bloop in the code.
Step 2: Use tools like debuggers and print statements to catch the bug in the act.
Step 3: Use bug sprays and code reviews to eliminate the bug.
You are now a certified bug hunting master! Go forth and hunt those bugs!