Use ex.ToString()
to get the full stack trace.
You must compile with debugging symbols (.pdb files), even in release mode, to get the line numbers (this is an option in the project build properties).
More Related Contents:
- Is there a difference between “throw” and “throw ex”?
- WPF global exception handler [duplicate]
- .NET – What’s the best way to implement a “catch all exceptions handler”
- Is this a bad practice to catch a non-specific exception such as System.Exception? Why?
- What is ApplicationException for in .NET?
- Catch multiple exceptions at once?
- How to handle AccessViolationException
- Best practices for catching and re-throwing .NET exceptions
- Exception messages in English?
- Cannot delete directory with Directory.Delete(path, true)
- Globally catch exceptions in a WPF application?
- Puzzling Enumerable.Cast InvalidCastException
- Can you catch a native exception in C# code?
- .NET Global exception handler in console application
- Is there a reason Image.FromFile throws an OutOfMemoryException for an invalid image format?
- What’s the difference between Application.ThreadException and AppDomain.CurrentDomain.UnhandledException?
- Handling exceptions, is this a good way?
- Why is try {…} finally {…} good; try {…} catch{} bad?
- When to use try/catch blocks?
- Avoiding null reference exceptions
- How to catch ALL exceptions/crashes in a .NET app [duplicate]
- Why does a bad password cause “Padding is invalid and cannot be removed”?
- InvalidProgramException / Common Language Runtime detected an invalid program
- How to log all thrown exceptions?
- How to check for valid xml in string input before calling .LoadXml()
- Why Create Custom Exceptions? [closed]
- How do I determine the HResult for a System.IO.IOException?
- The ObjectContext instance has been disposed and can no longer be used for operations that require a connection [duplicate]
- Finding the cause of System.AccessViolationException
- Dynamically changing Textbox’s AutoComplete List causes AccessViolationException, any advice?