lldb: Breakpoint on exceptions (equivalent of gdb's catch throw)

前端 未结 3 1429
别那么骄傲
别那么骄傲 2021-01-31 14:04

I am trying to use lldb for c++ debugging and I want to halt if an exception is thrown, like gdb\'s catch throw, and I cannot find an equivalent in the lldb documen

3条回答
  •  无人及你
    2021-01-31 15:05

    Use break set -E c++ to break on all exceptions and break set -F std::range_error to break on a specific exception.

提交回复
热议问题