c# - Determining which code line threw the exception -
One line in dotNet throws an exception and is caught, how can I find out which file to throw exceptions was given? It seems relatively simple, but I can not understand it ...
You can only do this if You have debug symbols available
hold (ex before) {// ex.StackTrace check property}
If you want to debug such a situation, in VS, you better Check that the throttled
checkbox in the exception
located in debug
checkboxes. Menu The debugger will be broken as soon as the exception is thrown, even if it is in try
block
Comments
Post a Comment