Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception

2016-06-22 Thread Bernhard Urban
t: Wednesday, June 22, 2016 4:52 AM To: Алексей Богомолов; mono-list@lists.ximian.com Subject: Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception > From: mono-list-boun...@lists.ximian.com [mailto:mono-list- > boun...@lists.ximian.com] On Behalf Of ??? ??

Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception

2016-06-22 Thread Alan
eu...@microsoft.com>: > >> You can try to run mono without inlining: `mono -O=-inline [...]' >> >> >> -- >> *From:* mono-list-boun...@lists.ximian.com < >> mono-list-boun...@lists.ximian.com> on behalf of Alan < >> alan.mcgov...@gmail.com> >> *Sent:*

Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception

2016-06-22 Thread Алексей Богомолов
Thanks! CA2200 exactly explains my confusion. In my real-life case DB driver re-throws its own exception and we loose the name of a query that caused error. It brings a lot of problems in production, when there are many queries in one batch. For me the question is closed, thanks again. Edward,

Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception

2016-06-22 Thread Edward Ned Harvey (mono)
> From: mono-list-boun...@lists.ximian.com [mailto:mono-list- > boun...@lists.ximian.com] On Behalf Of ??? ? > First, just to be sure you know, you *almost* should never catch and rethrow, because you're not adding new information. If you want to add new information, generally you

Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception

2016-06-22 Thread Алексей Богомолов
Cc:* Mono List > *Subject:* Re: [Mono-list] Mono does not include full stacktrace while > rethrowing exception > > This happens on .NET too. This gives a good description of what's > happening and why. > > > http://www.hanselman.com/blog/ReleaseISNOTDebug64bitOpti

Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception

2016-06-21 Thread Bernhard Urban
c: Mono List Subject: Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception This happens on .NET too. This gives a good description of what's happening and why. http://www.hanselman.com/blog/ReleaseISNOTDebug64bitOptimizationsAndCMethodInliningInReleaseBuildCallStack

Re: [Mono-list] Mono does not include full stacktrace while rethrowing exception

2016-06-21 Thread Alan
This happens on .NET too. This gives a good description of what's happening and why. http://www.hanselman.com/blog/ReleaseISNOTDebug64bitOptimizationsAndCMethodInliningInReleaseBuildCallStacks.aspx Alan On 21 June 2016 at 09:31, Алексей Богомолов wrote: > This behavior

[Mono-list] Mono does not include full stacktrace while rethrowing exception

2016-06-21 Thread Алексей Богомолов
This behavior makes difficult to troubleshoot errors, especially in external libraries. Example code: public class ExceptionReThrow{ public void Test(){ try { M1 (); } catch (Exception ex) { Console.WriteLine(ex); } }