Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Get line number at unhandled exception during runtime (no debugger)

$
0
0
Hello!

I like to find a way to get the line numbers when I trap my UnhandledExceptions (that I set up in the ApplicationEvents.vb file).

During debugging mode (under the IDE.e) I can get this from the StackTrace method but this seems to not be available during run time outside the IDE.

Is there any way to achieve this?? For instance, if I run my app without trapping the unhandled exceptions .NET Framework shows it own dialogue box with trace info including a line number! Where does the MS people get this from?

Best regards/
Magnus

Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>