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 normal language runtime exception 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

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -