This is a mirror of official site: http://jasper-net.blogspot.com/

Mono 2.8 Trick: tracing exceptions

| Sunday, July 25, 2010
Mono has an strace-like feature built into the runtime. This is useful to see which methods are being called by your application, just invoke Mono with --trace.

Our upcoming version has a neat new feature, when you use --trace=E:ExceptionName or --trace=E:all you get a stack trace of where the exception was thrown from:

$ gmcs.exe
mono$ gmcs missing.cs
error CS2001: Source file `missing.cs' could not be found
Compilation failed: 1 error(s), 0 warnings

And now with tracing enabled, we do it setting the MONO_ENV_OPTIONS variable

Read more: Miguel de Icaza's web log

Posted via email from .NET Info

0 comments: