[MonoDevelop] Break only on unhandled exceptions
alan.mcgovern at gmail.com
Tue Nov 20 17:14:29 UTC 2012
Visual Studio has a different concept of what classifies as an
unhandled exception. If you have 'Just My Code' enabled, it treats
every exception that propagates from user code to framework code as
'unhandled' and therefore the debugger halts execution. i.e. you must
have a try/catch written in your own code for Visual Studio to treat
the exception as handled. SDB has the more strict/accurate rule of 'If
this exception is not wrapped in a try/catch *somewhere* it is
unhandled. As such throwing an exception is fine as long as the stack
unwindws to a try/catch handler in either your code or the .NET
Visual Studios behaviour is desirable in many scenarios and I've
raised the issue with our debugger guy. He's going to look into it,
but there's no ETA on when/if we'd be able to have the same semantics
as Visual Studios debugger when executing with 'Just My Code' enabled.
Does this sound like the behaviour you are looking for?
On 20 November 2012 15:54, Lluis Sanchez Gual <slluis.devel at gmail.com> wrote:
> El 16/11/2012, a las 16:16, thenextman <rmarkiewicz at devolutions.net> escribió:
>> slluis.devel wrote
>>> This is how MonoDevelop works. It always stops in unhandled exceptions. So
>>> I still don't see what's missing.
>> Yes, but it also stops in *handled* exceptions, which is what I don't
> If you don't want the debugger to stop on handled exceptions, then don't select the exceptions in the Exceptions dialog. The debugger will always stop in unhandled exceptions (since they imply a termination of the process), no matter what you select in that dialog.
>> View this message in context: http://mono.1490590.n4.nabble.com/Break-only-on-unhandled-exceptions-tp4657307p4657419.html
>> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
More information about the Monodevelop-list