[MonoDevelop] MDB fails to start within MonoDevelop

BenPence benjamin.pence at tais.toshiba.com
Fri Oct 2 17:15:28 EDT 2009


I am trying to get mdb-2.0 working in Monodevelop 2.0.  It installs, but
throws an exception when I try to use it.

Setup: 
-mono 2.4.2.2
-monodevelop 2.0
-mono-debugger-2.4.2.1
-monodevelop-debugger-mdb-2.0 (note: when I tried to 'make' this package, I
got the "./RuntimeInvokeManager" error.  I applied the patch found 
http://www.centriment.com/2009/07/26/patch-for-monodevelop-2-0-debugger-for-mono-2-4-2-2/
here , and then it installed.)

mdb works fine from the command line (see test run below)
When I try to debug a program in MD, it compiles successfully, then gives me
the following error in a popup:


> System.DllNotFoundException: monodebuggerserver
> 
> Server stack trace: 
>   at (wrapper managed-to-native)
> Mono.Debugger.Backend.DebuggerMutex:mono_debugger_mutex_new ()
>   at Mono.Debugger.Backend.DebuggerMutex..ctor (System.String name)
> [0x00007] in
> /root/Desktop/mono_debugger/monodevelop_debugger/mono-debugger-2.4.2.1/backend/EventQueue.cs:98 
>   at Mono.Debugger.ObjectCache.Initialize () [0x00000] in
> /root/Desktop/mono_debugger/monodevelop_debugger/mono-debugger-2.4.2.1/classes/ObjectCache.cs:40 
>   at Mono.Debugger.Backend.DebuggerServant..ctor (Mono.Debugger.Debugger
> client, Mono.Debugger.ReportWriter writer,
> Mono.Debugger.DebuggerConfiguration config) [0x0001a] in
> /root/Desktop/mono_debugger/monodevelop_debugger/mono-debugger-2.4.2.1/backend/DebuggerServant.cs:33 
>   at (wrapper remoting-invoke-with-check)
> Mono.Debugger.Backend.DebuggerServant:.ctor
> (Mono.Debugger.Debugger,Mono.Debugger.ReportWriter,Mono.Debugger.DebuggerConfiguration)
>   at Mono.Debugger.Debugger..ctor (Mono.Debugger.DebuggerConfiguration
> config) [0x00012] in
> /root/Desktop/mono_debugger/monodevelop_debugger/mono-debugger-2.4.2.1/classes/Debugger.cs:47 
>   at (wrapper remoting-invoke-with-check) Mono.Debugger.Debugger:.ctor
> (Mono.Debugger.DebuggerConfiguration)
>   at DebuggerServer.DebuggerServer.Run
> (Mono.Debugging.Client.DebuggerStartInfo startInfo) [0x00023] in
> /root/Desktop/monodevelop-debugger-mdb-2.0/Mono.Debugging.Server.Mdb/DebuggerServer.cs:94 
> 
> Exception rethrown at [0]: 
> 
>   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
> (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
> System.Exception& exc, System.Object[]& out_args) [0x00000] 
> 

Running hello.exe from mdb successfully:

[root at localhost monodevelop_debugger]# mdb
> Mono Debugger
> (mdb) file /root/Projects/hworld/hworld/bin/Debug/hworld.exe
> Executable file: /root/Projects/hworld/hworld/bin/Debug/hworld.exe.
> (mdb) run
> Starting program: /root/Projects/hworld/hworld/bin/Debug/hworld.exe 
> ** Message: WARNING: Running mdb as root may be a problem because setuid()
> and
> seteuid() do nothing.
> See http://primates.ximian.com/~martin/blog/entry_150.html for details.
> ** Message: WARNING: Running mdb as root may be a problem because setuid()
> and
> seteuid() do nothing.
> See http://primates.ximian.com/~martin/blog/entry_150.html for details.
> ** Message: WARNING: Running mdb as root may be a problem because setuid()
> and
> seteuid() do nothing.
> See http://primates.ximian.com/~martin/blog/entry_150.html for details.
> Thread @1 stopped at #0: 0xb79a02d6 in hworld.hello.Main()+0x6 at
> /root/Projects/hworld/hworld/hello.cs:13.
>   13                    Console.Out.WriteLine("Hey");
> (mdb) n
> Hey
> Thread @1 exited.
> Process #1 exited.
> (mdb) Target exited.
> quit
> [root at localhost monodevelop_debugger]# 
> 

Why can't monodevelop use mdb, when the command line version works fine?

Thanks in advance
-Ben

-- 
View this message in context: http://www.nabble.com/MDB-fails-to-start-within-MonoDevelop-tp25722071p25722071.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.



More information about the Monodevelop-list mailing list