It is profoundly confusing writing a debugger. You're accustomed to seeing a stacktrace as a sign that you've screwed up, but it means that your debugger is working correctly!
One thing I've learnt from writing a toy compiler is that this instruction usually means you have a bug:
add %al,(%rax)
This is the instruction encoding of all zeroes. It means you've jumped to the wrong place, or screwed up the size of an operand.
Programming in the debugger: https://willcrichton.net/notes/programming-in-the-debugger/
Discusses how notebooks enable incremental program writing, and contrasts with REPLs.
Makes some interesting points regarding persistence, although resumable exceptions have similar upsides too.