c# - Print line numbers on MonoMac application stack traces -
I have a monomaker application and to see which line has generated an exception. All my stack traces are like this:
[error] Fatal exception: system reflection. Target invocation exception: An exception has been thrown to the goal of a greeting. --- & gt; System Extension: I'm going to crash now. On & amp ;; File Name Unknown>: 0 (Sync on Sync Manager: 0) (Configuring on File> Unknown Name> 0: 0 (Wrapper Managed & amp;; SY; Mac Configuration..clier (System.String Destination, IDbasePath Generator Path Generator) [0x00000] MacConfiguration..ctor () [0x00000] -to-native) System. Reflection.MonoCMethod: On InternalInvoke (System.Reflection.MonoCMethod, Object, Object [], System.express & amp;) system. Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection Binary Binder, System.Object [] Criteria, System. Globalization.Cultural Information Culture) In [0x00000] & lt; Filename Unknown & gt ;: 0 --- End of Internal Exception Stack Trace --- On System. Reflections.Momocomath Invoke (Object, System. Reflection. Binding Flags, System. Reflection Builder, Object [], System Globilization. Celticfo) & lt; 0x001f3 & gt; On the system reflection. Monosimath Invoke (System. Reflection. Binding Falges, System. Reflection Builder, Object [], System Globilization. Coulterfo) & lt; 0x00024 & gt; On the system reflection. Constructor Info Invoke (object []) & lt; 0x00042 & gt; On the system Activate.Creative Instance (system type, bull) & lt; 0x001d3 & gt; On the system Activate.Creative Instance (System. Type) & lt; 0x00013 & gt; Sync.ConfigurationSection.get_Configuration () at & lt; 0x00043 & gt; Sync.Configuration.LoadFromXML (string) & lt; 0x000cf & gt; On Sync.Configuration.get_Default () & lt; 0x0005f & gt; On Sync.Mac.AppDelegate..ctor () & lt; 0x00037 & gt; (Wrapper dynamic-method) object .905edfe4-e0b5-4f92-955e-4e10c991fb3a (interactive, monomac.obiescreutime selector) & lt; 0x00057 & gt; .905edfe4-e0b5-4f92-955e-4e10c991fb3a (interputer, monomac.objcr.time.selector) on the object (covert country-cum-managed) & lt; 0x0006f & gt; (Wrapper managed-to-Netiwh) MonoMac.AppKit.NSApplication.NSApplicationMain (int, String []) & lt; 0x00003 & gt; MonoMac.AppKit.NSApplication.Main (string []) & lt; 0x0003f & gt; On Sync.Mac.MainClass.Main (string []) & lt; 0x000e7 & gt; I have tried copying the .mdb files to the content / monobandle folder, but I still do not see the line number
In Linux
, see the line number Not only you MDB is required, but also to call the mono with the flag "-debug".
Now, on Mac, I'm not sure whether it works (or if it is possible because you are using a bundle and I'm not sure that it means that Compile you all into a single executable?).
Comments
Post a Comment