Showing posts with label Debug. Show all posts
Showing posts with label Debug. Show all posts

Monday, September 7, 2009

Exception thrown in Form.Load event is never caught by IDE

You can configure debugger to break on selected exceptions. To do this you need to open Debug -> Exceptions window and ensure that both check boxes are checked (especially check box in "Thrown" column) for the "CLR Exceptions" row.

This means that debugger will intercept and break on the selected exceptions right after they are thrown.

Here is an article about this window: http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/b8c82b79-47d4-42ab-abdb-ff71d67a0022

Source