0

I have a fairly large and complex program I am trying to debug right now. I keep getting a St13runtime_error and I have no idea what that means. I think its an std::runtime_error. Are there any general strategies I can employ here?

I have tried getting a stack trace and it just says Unknown Function for like half the trace which isn't very helpful even though I built in debug mode.

  • If that exception is not captured by any catch clause, your debugger will stop that process at where the exception being thrown, and you could get the stack trace and more debug information, – aleck099 Apr 17 '22 at 14:13
  • 2
    I know the debugger in Visual Studio that you can enable it to break on c++ exceptions thrown. I assume other debuggers have the same ability. Edit: This is for gdb: [https://stackoverflow.com/questions/1115428/run-an-application-in-gdb-until-an-exception-occurs](https://stackoverflow.com/questions/1115428/run-an-application-in-gdb-until-an-exception-occurs) – drescherjm Apr 17 '22 at 14:22
  • 1
    Oh the gdb one is especially helpful. Thank you both! I will do that. – Andrew Katson Apr 17 '22 at 14:31

0 Answers0