>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Gagnon >Sent: miércoles, 25 de abril de 2007 19:15 >To: [email protected] >Subject: [Mono-list] Line numbers in exceptions > >Hi, > >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.
Rolf _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
