pnzrfst1
pnzrfst1

Reputation: 339

CLion LLDB doesn't break on uncaught exception

I making a WinAPI DLL using CLion and debugging via LLDB debugger (inside CLion). So breakpoints work fine, however, if there's uncaught exception in my DLL target process crashes and debugger doesn't break when it does. But if there's exception in the target process, debugger breaks fine. Is there any workaround?

Upvotes: 2

Views: 1690

Answers (2)

Kevin Kreiser
Kevin Kreiser

Reputation: 714

this happens to me often and almost always the culpret is that the section marked Disable until hitting the following breakpoint: is set to Any Exception. simply change that value to None and the debugger will break when an exception is thrown.

i have no idea how or why this setting is changing itself to that value but, whenever it does, exception breakpoints stop working.

enter image description here

Upvotes: 1

Victor Sergienko
Victor Sergienko

Reputation: 13475

Did you enable breaking on exception in Run menu - View breakpoints window?

Upvotes: 3

Related Questions