[Mono-list] Line numbers in exceptions
Robert Jordan
robertj at gmx.net
Thu Apr 26 05:12:26 EDT 2007
Hi,
Rolf Bjarne Kvinge wrote:
>
>> 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
>>
>> 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.
You may use this tool to convert pdbs to mdbs:
http://lists.ximian.com/pipermail/mono-list/2006-September/032692.html
http://lists.ximian.com/pipermail/mono-list/2006-September/032693.html
Robert
More information about the Mono-list
mailing list