Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread David Curylo
If you pass the —debug option to mono, you should get the full stack trace. http://www.mono-project.com/Debugging On Dec 29, 2013, at 11:16 PM, Andrei Faber wrote: > Why doesn't Mono include full stack trace information into exception? ___ Mono-list

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread Andrei Faber
it doesn't seem to change anything mono.exe --debug ConsoleApplication2.exe System.ApplicationException: An application exception has occurred. at ConsoleApplication2.Program.Main (System.String[] args) [0x0] in :0 If you pass the —debug option to mono, you should get the full stack tra

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread Andrés G. Aragoneses
What version of mono are you using? If < 3.0, please upgrade and retest. If >= 3.0, please report a bug in http://bugzilla.xamarin.com/ On 30/12/13 14:04, Andrei Faber wrote: > it doesn't seem to change anything > mono.exe --debug ConsoleApplication2.exe > System.ApplicationException: An applic

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread David Curylo
You need to tell mono to create the debugging symbols when building. mcs -debug ConsoleApplication2.cs You should see ConsoleApplication2.exe.mdb in the output directory, and now when you run with the --debug option you should see line numbers in the stack trace. Please keep in mind you are te

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread Andrei Faber
Why debugging symbols are required to show full stack trace? MS .NET doesn't require that. On 30/12/2013 20:42, David Curylo wrote: You need to tell mono to create the debugging symbols when building. mcs -debug ConsoleApplication2.cs You should see ConsoleApplication2.exe.mdb in the output d

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread Dave Curylo
On Dec 30, 2013, at 9:22 AM, Andrei Faber wrote: > Why debugging symbols are required to show full stack trace? MS .NET doesn't > require that. It’s sort of tricking you when you run it on the same Windows machine where you built it. If you copy that same ConsoleApplication2.exe built by MS.N

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread Rodrigo Kumpera
This is due to inlining. Run your program with -O=-inline and you'll get what you want. On Sun, Dec 29, 2013 at 11:16 PM, Andrei Faber wrote: > Why doesn't Mono include full stack trace information into exception? > For example, this code: > > class Program > { > static void Main

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread Andrei Faber
Thanks. On 30/12/2013 23:38, Jonathan Pryor wrote: On Dec 30, 2013, at 9:25 AM, Andrei Faber wrote: Why debugging symbols are required to show full stack trace? MS .NET doesn't require that. Good question -- it doesn't make sense, as the methods are still present in the IL. Using `mcs -deb