How to debug better even after using try catch

If I use try / catch and display a message, I can only see the exception, but the VS IDE does not point me to Exact LINE ... (although I get the function name and stacktrace)

In any case, to throw an exception on the exact line during debugging without deleting try / catch blocks?

thank

+3
source share
3 answers

In Visual Studio, you hit the debug menu -> Exceptions ...

Make sure that the Abandoned checkbox is checked, as well as the Raw user.

This will cause Visual Studio to break on the line that threw the exception, even if it is being processed (thus pointing to the exact line).

+10

. , , .

, , ( ).

0

You can see the stack trace, which gives the exact line where it breaks.

0
source

Source: https://habr.com/ru/post/1756560/


All Articles