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 andrei.fa...@gmail.com wrote: Why doesn't Mono include full stack trace information into exception

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 filename unknown:0 If you pass the —debug option to mono, you should get

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

2013-12-30 Thread Andrés G. Aragoneses
...@gmail.com wrote: Why doesn't Mono include full stack trace information into exception? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list

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

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

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 andrei.fa...@gmail.com 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

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 andrei.fa...@gmail.comwrote: Why doesn't Mono include full stack trace information into exception? For example, this code: class Program {

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 andrei.fa...@gmail.com 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

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

2013-12-29 Thread Andrei Faber
Why doesn't Mono include full stack trace information into exception? For example, this code: class Program { static void Main(string[] args) { try { Foo(); } catch (Exception exc) {