In dotNet a line throws an exception and is caught, how can I figure out which line in which file threw the exception? Seems relatively straightforward, but I can’t figure it out…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can only do it if you have debug symbols available.
If you want to debug such a situation in VS, you’d better just check
Throwncheckbox forCommon Language Runtime ExceptionsinExceptionsdialog located inDebugmenu. The debugger will break as soon as the exception is thrown, even if it’s in atryblock.