[Mono-list] Line numbers in exceptions

Rolf Bjarne Kvinge rolflists at ya.com
Wed Apr 25 13:35:29 EDT 2007

>From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Jonathan Gagnon
>Sent: miércoles, 25 de abril de 2007 19:15
>To: mono-list at lists.ximian.com
>Subject: [Mono-list] Line numbers in exceptions
>I have a program that is compiled with Visual Studio.  When I run it in
.NET, I get the line numbers in the string generated by
Exception.ToString().  But when I run it with Mono, I don't get the line
numbers.  I tried using the -->debug flag and it doesn't change anything, I
still don't have the line numbers.  I suspect that this is because I
compiled my application with Visual Studio and that Mono can't use the .pdb
files.  Am I right?  If I am right, is >there a way to at least get the IL
offset in the file?  It seems to always return 0 in my case.
Mono can't read pdb files, you have to recompile the assemblies with any of
the mono compilers (mcs / gmcs) in order to get the line numbers.


More information about the Mono-list mailing list