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

plaisthos picture plaisthos · Nov 14, 2011 · Viewed 20.1k times · Source

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 documentation.

Answer

Jonas K picture Jonas K · Mar 19, 2014

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