How to access Exception Breakpoints panel Permanently deleted user 创建于 2014年04月23日 09:42 HiI'm developing plugin for IntelliJ and want to know how can I access the Exception Breakpoints panel and change its properties programatically.
Hi, unfortunately there is no API for current breakpoints panels modification. What exactly are you trying to achieve?
Hi Egor,
What I need is to enable Exception Breakpoints for uncaught exceptions ny default.
Do you mean you want all new exception breakpoints to have "uncaught exceptions" checked and "caught exceptions" unchecked?
yes, I want the debugger to stop at any uncaught exception
I'm not sure I understand what you need :(
Debugger stops at any uncaught exception with the configuration from the screenshot, doesn't it?
yeah it does but I need to do it myself, instead I have a button in the toolbar inside my plugin that set some defaults and I want to include this setting in the same action (programatically)
There is no way to acces the panel, but you can access breakpoint itself. It has changed slightly in 13.1:
after 13.1:
properties.NOTIFY_CAUGHT=false; properties.NOTIFY_UNCAUGHT=true;before 13.1:
Hi Egor,
Thanks a lot for your help :)
I just couldn't find setEnabled(true) method but instead i used breakpoint.ENABLED = true;