I have some places in a C # application where a potential exception is not found, but there is a try-finally block to free resources before the failure in case of an exception.
When I run the code in Visual Studio and an Exception occurs, it breaks into a correlation line, marks it yellow and describes the exception.
It's good.
But, having noticed and read the exception, I want my application to fail (execute finally blocks). This is exactly what will happen if I run the code outside of Visual Studio. However, when I press F5 to continue, it gets stuck on this very line, marking it again and again.
What can I do to tell Visual Studio I want the application to continue = crash?
source
share