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 -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -