문제

Why I can't catch the following XamlParseException?

enter image description here

After I click the Continue button the program continues with a normal behavior (an Exception is catched and the ex.Message is printed on the console).

The problem is the Visual Studio exception dialog. Why it appears?

도움이 되었습니까?

해결책

You have break on ALL exceptions turned on in debugging most likely. Take a look at "Exceptions..." (Ctrl+Alt+E) under the Debug menu, see if the "CLR Exceptions" has Thrown ticked. If so then you might want to untick it.

When enabled this means that even thrown exceptions that are normally caught (first chance exceptions) will be caught by the debugger.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top