[Mono-list] How can I get line numbers on MonoMac app stack traces?

Andres G. Aragoneses knocte at gmail.com
Fri Nov 2 17:00:36 UTC 2012


Strangely enough, I've used MONO_OPTIONS in the past and it works too.

On 02/11/12 15:15, Rodrigo Kumpera wrote:
> No, It's MONO_ENV_OPTIONS.
>
>
> On Fri, Nov 2, 2012 at 7:50 AM, Andres G. Aragoneses <knocte at gmail.com
> <mailto:knocte at gmail.com>> wrote:
>
>
>     Should be MONO_OPTIONS, not MONO_ENV_OPTIONS, right?
>
>
>
>     On 01/11/12 21:29, Maurício Linhares wrote:
>
>         No deal:
>
>         ➜  winclient git:(develop) ✗ export MONO_ENV_OPTIONS="--debug"
>         ➜  winclient git:(develop) ✗ ./Sync.app/Contents/MacOS/Sync
>
>         Unhandled Exception: System.Reflection.__TargetInvocationException:
>         Exception has been thrown by the target of an invocation. --->
>         System.Exception: I am going to crash now.
>             at Sync.MacConfiguration..ctor (System.String destinationPath,
>         IDatabasePathGenerator pathGenerator) [0x00000] in <filename
>         unknown>:0
>             at Sync.MacConfiguration..ctor () [0x00000] in <filename
>         unknown>:0
>             at (wrapper managed-to-native)
>         System.Reflection.MonoCMethod:__InternalInvoke
>         (System.Reflection.__MonoCMethod,object,object[],__System.Exception&)
>             at System.Reflection.MonoCMethod.__Invoke (System.Object obj,
>         BindingFlags invokeAttr, System.Reflection.Binder binder,
>         System.Object[] parameters, System.Globalization.__CultureInfo
>         culture)
>         [0x00000] in <filename unknown>:0
>             --- End of inner exception stack trace ---
>         at System.Reflection.MonoCMethod.__Invoke
>         (object,System.Reflection.__BindingFlags,System.__Reflection.Binder,object[],__System.Globalization.__CultureInfo)
>         <0x001f3>
>         at System.Reflection.MonoCMethod.__Invoke
>         (System.Reflection.__BindingFlags,System.__Reflection.Binder,object[],__System.Globalization.__CultureInfo)
>         <0x00024>
>         at System.Reflection.__ConstructorInfo.Invoke (object[]) <0x00042>
>         at System.Activator.__CreateInstance (System.Type,bool) <0x001d3>
>         at System.Activator.__CreateInstance (System.Type) <0x00013>
>         at Sync.ConfigurationSection.get___Configuration () <0x00043>
>         at Sync.Configuration.LoadFromXML (string) <0x000cf>
>         at Sync.Configuration.get_Default () <0x0005f>
>         at Sync.Mac.AppDelegate..ctor () <0x00037>
>         at (wrapper dynamic-method)
>         object.f57e4aeb-6b60-4541-__bc56-c7326f76297f
>         (intptr,MonoMac.ObjCRuntime.__Selector) <0x00057>
>         at (wrapper native-to-managed)
>         object.f57e4aeb-6b60-4541-__bc56-c7326f76297f
>         (intptr,MonoMac.ObjCRuntime.__Selector) <0x0006f>
>         at (wrapper managed-to-native)
>         MonoMac.AppKit.NSApplication.__NSApplicationMain (int,string[])
>         <0x00003>
>         at MonoMac.AppKit.NSApplication.__Main (string[]) <0x0003f>
>         at Sync.Mac.MainClass.Main (string[]) <0x000e7>
>
>         -
>         Maurício Linhares
>         http://techbot.me/ - http://twitter.com/#!/__mauriciojr
>         <http://twitter.com/#!/mauriciojr>
>
>
>         On Thu, Nov 1, 2012 at 5:23 PM, Rodrigo Kumpera
>         <kumpera at gmail.com <mailto:kumpera at gmail.com>
>         <mailto:kumpera at gmail.com <mailto:kumpera at gmail.com>>> wrote:
>
>              Run with --debug
>
>
>              On Thu, Nov 1, 2012 at 5:06 PM, Maurício Linhares
>              <mauricio.linhares at gmail.com
>         <mailto:mauricio.linhares at gmail.com>
>         <mailto:mauricio.linhares at __gmail.com
>         <mailto:mauricio.linhares at gmail.com>>>
>
>              wrote:
>
>                  I'm most likely doing something really stupid here, but
>         I can't
>                  find a way to get line numbers on my stack traces.
>
>                  I have manually added the ".mdb" files to the
>                  "Contents/MonoBundle" folder (so they're at the same
>         folder as
>                  the DLLs) but still can't get it to work.
>
>                  Am I missing something here?
>
>                  -
>                  Maurício Linhares
>         http://techbot.me/ - http://twitter.com/#!/__mauriciojr
>         <http://twitter.com/#!/mauriciojr>
>
>                  _________________________________________________
>                  Mono-list maillist  - Mono-list at lists.ximian.com
>         <mailto:Mono-list at lists.ximian.com>
>                  <mailto:Mono-list at lists.__ximian.com
>         <mailto:Mono-list at lists.ximian.com>>
>         http://lists.ximian.com/__mailman/listinfo/mono-list
>         <http://lists.ximian.com/mailman/listinfo/mono-list>
>
>
>
>
>
>
>         _________________________________________________
>         Mono-list maillist  - Mono-list at lists.ximian.com
>         <mailto:Mono-list at lists.ximian.com>
>         http://lists.ximian.com/__mailman/listinfo/mono-list
>         <http://lists.ximian.com/mailman/listinfo/mono-list>
>
>
>
>     _________________________________________________
>     Mono-list maillist  - Mono-list at lists.ximian.com
>     <mailto:Mono-list at lists.ximian.com>
>     http://lists.ximian.com/__mailman/listinfo/mono-list
>     <http://lists.ximian.com/mailman/listinfo/mono-list>
>
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>




More information about the Mono-list mailing list