[MonoDevelop] How to debug MonoDevelop "native" on Mac?

Harold Johnson harold.johnson at gmail.com
Thu Jan 8 17:21:59 EST 2009


On Thu, Jan 8, 2009 at 2:12 PM, Harold Johnson <harold.johnson at gmail.com> wrote:
> On Thu, Jan 8, 2009 at 1:52 PM, Sandy Armstrong
> <sanfordarmstrong at gmail.com> wrote:
>> On 01/08/2009 11:39 AM, Harold Johnson wrote:
>>>
>>> On Thu, Jan 8, 2009 at 11:24 AM, Sandy Armstrong
>>> <sanfordarmstrong at gmail.com>  wrote:
>>>>
>>>> On 01/08/2009 11:03 AM, Herald wrote:
>>>>>
>>>>> The "native" Mac MonoDevelop app crashes left and right on my system;
>>>>> someone
>>>>> suggested I collect the stack traces when it crashes, and file bug
>>>>> reports.
>>>>> I'm researching how to do this now, reading
>>>>> http://www.mono-project.com/Debugging about debugging Mono , where it
>>>>> instructs us that " it is necessary to compile your programs with
>>>>> debugging
>>>>> information." Has the "native" Mac MonoDevelop package been compiled
>>>>> with
>>>>> debugging information so that I may apply the stack traces to it? If so,
>>>>> what command do I run in Terminal.app (which is Mac's console
>>>>> application)?
>>>>> Thanks.
>>>>
>>>> I don't know if the .mdb (debugging) files are included in the
>>>> MonoDevelop.app; if they were you would want to add --debug in the mono
>>>> command line of /Applications/MonoDevelop.app/Contents/MacOS/monodevelop
>>>> .
>>>>
>>>> You can still get a useful stack trace even without debug information (it
>>>> just won't have line numbers and other niceties).
>>>>
>>>> Either way, the output will go to Console.app.  Or, if you prefer, you
>>>> can
>>>> run the monodevelop script I mention above directly from Terminal.app.
>>>
>>> When I run the command I receive the following error:
>>>
>>> Cannot open assembly 'monodevelop': File does not contain a valid CIL
>>> image.
>>
>> /Applications/MonoDevelop.app/Contents/MacOS/monodevelop is a shell script
>> that start MonoDevelop.  Just execute it directly (it sounds like you're
>> trying to run it with mono).  Edit the script to use --debug (I think in the
>> last line? I don't have it in front of me), if you want better traces.
>>
>>> How can I confirm that the .mdb files exist/don't exist?
>>
>> Poke around inside the MonoDevelop.app contents.  They would be with the
>> MonoDevelop DLLs and EXEs.
>
> Okay, I've located them in
> /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin. I'll
> use them to run stack traces once I figure out how to do so. Earlier,
> however, I went ahead and started console.log, clearing it and running
> MonoDevelop until it crashed (which happens immediately upon starting
> a new solution or a new file or attempting to open an existing
> solution) and added the output of console.log to an existing bug
> report:
>
> https://bugzilla.novell.com/show_bug.cgi?id=366473#c4
>
> That report was initially filed for an earlier version of MonoDevelop
> but I added to it anyway. I hope I've done this correctly; I didn't
> want to annoy anybody by posting a new report when a nearly identical
> one already existed.
>
> Harold
>

Somehow I'd missed the first part of your last email--you were right,
I was running mono --debug
/Applications/MonoDevelop.app/Contents/MacOS/monodevelop rather than
/Applications/MonoDevelop.app/Contents/MacOS/monodevelop --debug. I've
got the output now (which I'll also be adding to the bug report
mentioned in my last email):

harold-johnsons-powerbook:~ zandra$
/Applications/MonoDevelop.app/Contents/MacOS/monodevelop --debug

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.exe.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Ide.dll.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Core.dll.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Library/Frameworks/Mono.framework/Versions/2.0.1/lib/mono/gac/Mono.Addins.Setup/0.3.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Core.Gui.dll.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Library/Frameworks/Mono.framework/Versions/2.0.1/lib/mono/gac/Mono.Addins/0.3.0.0__0738eb9f132ed756/Mono.Addins.dll.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Components.dll.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Documentation.dll.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Projects.dll.mdb
has incorrect version (expected 50.0, got 39)

** (MonoDevelop.exe:1133): WARNING **: Symbol file
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Projects.Gui.dll.mdb
has incorrect version (expected 50.0, got 39)
RegisterProcess failed (error = -50)
Stacktrace:

  at (wrapper managed-to-native) Gtk.Application.gtk_init
(int&,intptr&) <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_init
(int&,intptr&) <0x00094>
  at Gtk.Application.Init () <0x00064>
  at MonoDevelop.Ide.Gui.IdeStartup.Run (string[]) <0x00140>
  at MonoDevelop.Startup.SharpDevelopMain.Main (string[]) <0x000bc>
  at (wrapper runtime-invoke)
MonoDevelop.Startup.SharpDevelopMain.runtime_invoke_int_string[]
(object,intptr,intptr,intptr) <0x00074>
Abort trap


More information about the Monodevelop-list mailing list