SharpDevelop equivalent of Visual Studio's "Break on exceptions"
In Visual Studio, there's a debugger setting labelled "Break on exceptions" or something like that. It drops into the debugger whenever an exceptio开发者_StackOverflown is raised (that is, on the first pass of the two pass exception mechanics), regardless of whether the exception will be handled or not.
This is a very useful feature, and I try to keep it on all the time when running in the debugger as I prefer to never have any exceptions raised.
I can't find an equivalent setting in SharpDevelop. Any idea whether it's there, and if not, why not?
In SD v4 they added "Pause on handled Exception", a checkbox in the "Tools / Options" dialog, in the "Debugging / General" section.
This will help you achieve your goal of never have any exceptions raised. ( as long as .NET doesn't choose to use Exception handling as a form of code-flow-control. )
UPDATE: In SD v5 they added the ability to choose which Exceptions to catch when thrown, whether handled or not.
And then you can enter the class name of the specific Exception you are interested in catching. At any time you can come back and uncheck the entry if you are no longer interested in that type of exception.
Hmm. I guess not:
http://bugtracker.sharpdevelop.net/issue/ViewIssue.aspx?id=1511&PROJID=4
Still, I wonder if there's a good reason that this isn't in there. Is it hard to implement?
This feature was added in SharpDevelop 4.0. See Jesse's answer.
精彩评论