Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-29 Thread xplicit

In monodevelop 2.2 I don't see 'Run With Mono Soft Debugger' only 'Run With
Mono Debugger'. In prefered debuggers I see: Mono Debugger, Mono Debugger
for ASP.NET, GNU Debugger (GDB).

Monodevelop 2.2 was installed from Ubuntu 10.04 repository and runs under
mono 2.4. 

Also I have two parallel mono environment (mono 2.6.4 and mono 2.7) and
tried to debug my applications with debugger from md 2.2 with no success. I
did not try to recompile MD 2.2 from sources yet (shoud I recompile or maybe
there is the way to add Soft Debugger to MD 2.2 without recompilation?)

But I tried to check out MD from trunk, recompiled it under mono 2.6.4 and
software debbuger appeared in the list and I now can debug my app under
'Soft Debugger' both in the 2.6.4 and 2.7 mono environment.

Generic mono debugger does not work with MD2.4 under mono 2.6.4 environment,
throwing 'MissingMethod' exception when evaluating watch (DeclaringType in
Mono.Debugger.Method). I don't know why this happens, I examined assembly,
which monodevelop tries to load (Mono.Debugger.dll from /opt/mono26) and it
seems, that the assembly has this method (if I understood right the output
of monodis)   

  
 


Michael Hutchinson wrote:
 
 On Tue, May 25, 2010 at 10:31 AM, xplicit s...@ngs.ru wrote:
 
 You got this message from running the debugger?
 
 I can see how something like that could happen if you used an old
 version of MDB with MD... but it shouldn't happen with the soft
 debugger. Do you have the menu option Run-Run with-Mono Soft
 Debugger?
 
 -- 
 Michael Hutchinson
 http://mjhutchinson.com
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 

-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Cannot-compile-monodebugger-with-mono-from-svn-trunk-tp2229014p2235847.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-29 Thread Michael Hutchinson
On Sat, May 29, 2010 at 3:10 PM, xplicit s...@ngs.ru wrote:
 In monodevelop 2.2 I don't see 'Run With Mono Soft Debugger' only 'Run With
 Mono Debugger'. In prefered debuggers I see: Mono Debugger, Mono Debugger
 for ASP.NET, GNU Debugger (GDB).

 Monodevelop 2.2 was installed from Ubuntu 10.04 repository and runs under
 mono 2.4.

The soft debugger commands are only be enabled when you target Mono
2.6 or later, because the soft debugger was only added in Mono 2.6.
However, you can target a Mono 2.6+ from a MD that's running on Mono
2.4 using MD's support for multiple target runtimes.

However, Ubuntu removed the soft debugger addin from their MonoDevelop
2.2 build, because it includes a binary dll copied from Mono 2.6 :/

 Also I have two parallel mono environment (mono 2.6.4 and mono 2.7) and
 tried to debug my applications with debugger from md 2.2 with no success. I
 did not try to recompile MD 2.2 from sources yet (shoud I recompile or maybe
 there is the way to add Soft Debugger to MD 2.2 without recompilation?)

An unmodified MD 2.2 build has the soft debugger addin. You could try
extracting the soft debugger addin dlls from the 2.2.2 rpms and
manually installing them.

 But I tried to check out MD from trunk, recompiled it under mono 2.6.4 and
 software debbuger appeared in the list and I now can debug my app under
 'Soft Debugger' both in the 2.6.4 and 2.7 mono environment.

 Generic mono debugger does not work with MD2.4 under mono 2.6.4 environment,
 throwing 'MissingMethod' exception when evaluating watch (DeclaringType in
 Mono.Debugger.Method). I don't know why this happens, I examined assembly,
 which monodevelop tries to load (Mono.Debugger.dll from /opt/mono26) and it
 seems, that the assembly has this method (if I understood right the output
 of monodis)

I really don't know much about the MDB addin or whether it can work
with multiple target Monos. You could try filing a bug or asking on
the MD list. But if you have the soft debugger working, it's much more
reliable anyway :)

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-28 Thread Michael Hutchinson
On Tue, May 25, 2010 at 10:31 AM, xplicit s...@ngs.ru wrote:

 For me it does not matter, which debbuger to use. I just want to have the
 ablity to debug my applications in monodevelop with the latest mono. I tried
 to debug mono 2.7 application in monodevelop 2.2 without compiling and
 installing debugger, but I got the error:

 System.Runtime.Remoting.RemotingException: Tcp transport error.

 Server stack trace:
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus
 (System.IO.Stream networkStream, System.Byte[] buffer) [0x0]
  at
 System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage
 (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream
 requestStream, ITransportHeaders responseHeaders, System.IO.Stream
 responseStream) [0x0]
  at
 System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage
 (IMessage msg) [0x0]

 Exception rethrown at [0]:
  --- System.Runtime.Remoting.RemotingException: Connection closed
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead
 (System.IO.Stream networkStream, System.Byte[] buffer, Int32 count)
 [0x0]
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus
 (System.IO.Stream networkStream, System.Byte[] buffer) [0x0]
  --- End of inner exception stack trace ---
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus
 (System.IO.Stream networkStream, System.Byte[] buffer) [0x0]
  at
 System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage
 (IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream
 requestStream, ITransportHeaders responseHeaders, System.IO.Stream
 responseStream) [0x0]
  at
 System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage
 (IMessage msg) [0x0]

 this is was the reason why I try to compile debugger with mono 2.7

You got this message from running the debugger?

I can see how something like that could happen if you used an old
version of MDB with MD... but it shouldn't happen with the soft
debugger. Do you have the menu option Run-Run with-Mono Soft
Debugger?

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-25 Thread xplicit

For me it does not matter, which debbuger to use. I just want to have the
ablity to debug my applications in monodevelop with the latest mono. I tried
to debug mono 2.7 application in monodevelop 2.2 without compiling and
installing debugger, but I got the error:

System.Runtime.Remoting.RemotingException: Tcp transport error.

Server stack trace: 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus
(System.IO.Stream networkStream, System.Byte[] buffer) [0x0] 
  at
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage
(IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream
requestStream, ITransportHeaders responseHeaders, System.IO.Stream
responseStream) [0x0] 
  at
System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage
(IMessage msg) [0x0] 

Exception rethrown at [0]: 
 --- System.Runtime.Remoting.RemotingException: Connection closed
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.StreamRead
(System.IO.Stream networkStream, System.Byte[] buffer, Int32 count)
[0x0] 
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus
(System.IO.Stream networkStream, System.Byte[] buffer) [0x0] 
  --- End of inner exception stack trace ---
  at System.Runtime.Remoting.Channels.Tcp.TcpMessageIO.ReceiveMessageStatus
(System.IO.Stream networkStream, System.Byte[] buffer) [0x0] 
  at
System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage
(IMessage msg, ITransportHeaders requestHeaders, System.IO.Stream
requestStream, ITransportHeaders responseHeaders, System.IO.Stream
responseStream) [0x0] 
  at
System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage
(IMessage msg) [0x0] 

this is was the reason why I try to compile debugger with mono 2.7



Michael Hutchinson wrote:
 
 On Mon, May 24, 2010 at 2:56 PM, xplicit s...@ngs.ru wrote:

 I tried to compile monodebugger with mono from trunk and could not.
 
 FWIW, are you sure you want MDB? Since Mono 2.6 there's a new SDB
 debugger built into the Mono runtime by default, which MonoDevelop 2.2
 supports by default without any extra addins.
 
 -- 
 Michael Hutchinson
 http://mjhutchinson.com
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 

-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Cannot-compile-monodebugger-with-mono-from-svn-trunk-tp2229014p2230114.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-24 Thread Robert Jordan
On 24.05.2010 20:56, xplicit wrote:

 I tried to compile monodebugger with mono from trunk and could not.

 I use mono parallel environment and I run ./autogen.sh --prefix=/opt/mono
 and configure failed, with error: *** Your Mono is too old for this version
 of the debugger.
 I investigated this issue and found, that configure tries to compile C file
 with following code:

You're seeing this error because mdb's configure is not finding
the pc file of your own private Mono installation.

Set PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig

and configure should succeed. See 
http://www.mono-project.com/Parallel_Mono_Environments.

Robert

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-24 Thread Robert Jordan

On 24.05.2010 21:07, Robert Jordan wrote:

On 24.05.2010 20:56, xplicit wrote:


I tried to compile monodebugger with mono from trunk and could not.

I use mono parallel environment and I run ./autogen.sh --prefix=/opt/mono
and configure failed, with error: *** Your Mono is too old for this version
of the debugger.
I investigated this issue and found, that configure tries to compile C file
with following code:


You're seeing this error because mdb's configure is not finding
the pc file of your own private Mono installation.

Set PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig

and configure should succeed. See
http://www.mono-project.com/Parallel_Mono_Environments.


Additionally, the attached patch is required for mdb trunk
because Mono's pc name has changed from mono to mono-2.

Robert
Index: configure.in
===
--- configure.in(revision 157801)
+++ configure.in(working copy)
@@ -146,7 +146,7 @@
 AC_SUBST(BASE_DEPENDENCIES_LIBS)
 
 ## Versions of dependencies
-PKG_CHECK_MODULES(SERVER_DEPENDENCIES, mono = $MONO_REQUIRED_VERSION glib-2.0 
= $GLIB_REQUIRED_VERSION $martin_deps)
+PKG_CHECK_MODULES(SERVER_DEPENDENCIES, mono-2 = $MONO_REQUIRED_VERSION 
glib-2.0 = $GLIB_REQUIRED_VERSION $martin_deps)
 AC_SUBST(SERVER_DEPENDENCIES_CFLAGS)
 AC_SUBST(SERVER_DEPENDENCIES_LIBS)
 
@@ -160,7 +160,7 @@
 CECIL_ASM=`pkg-config --variable=Libraries cecil`
 AC_SUBST(CECIL_ASM)
 
-PKG_CHECK_MODULES(WRAPPER, mono = $MONO_REQUIRED_VERSION gthread-2.0 = 
$GLIB_REQUIRED_VERSION)
+PKG_CHECK_MODULES(WRAPPER, mono-2 = $MONO_REQUIRED_VERSION gthread-2.0 = 
$GLIB_REQUIRED_VERSION)
 AC_SUBST(WRAPPER_CFLAGS)
 AC_SUBST(WRAPPER_LIBS)
 
@@ -174,7 +174,7 @@
 AC_SUBST(GACUTIL_FLAGS)
 AC_SUBST(CFLAGS)
 
-mono_prefix=`$PKG_CONFIG --variable=prefix mono`
+mono_prefix=`$PKG_CONFIG --variable=prefix mono-2`
 monodoc_prefix=`$PKG_CONFIG --variable=prefix monodoc`
 AC_SUBST(mono_prefix)
 AC_SUBST(monodoc_prefix)
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-24 Thread xplicit

Thanks, Robert,

You patch resolves the first issue, and I don't have to export CPPFLAGS
anymore. 

Anything about
error CS0006: cannot find metadata file `Mono.GetOptions' during make?

Sergey Zhukov


Robert Jordan wrote:
 
 On 24.05.2010 21:07, Robert Jordan wrote:
 On 24.05.2010 20:56, xplicit wrote:

 You're seeing this error because mdb's configure is not finding
 the pc file of your own private Mono installation.

 Set PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig

 and configure should succeed. See
 http://www.mono-project.com/Parallel_Mono_Environments.
 
 Additionally, the attached patch is required for mdb trunk
 because Mono's pc name has changed from mono to mono-2.
 
 Robert
 
-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Cannot-compile-monodebugger-with-mono-from-svn-trunk-tp2229014p2229091.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-24 Thread Robert Jordan
On 24.05.2010 21:50, xplicit wrote:

 Thanks, Robert,

 You patch resolves the first issue, and I don't have to export CPPFLAGS
 anymore.

 Anything about
 error CS0006: cannot find metadata file `Mono.GetOptions' during make?

Oh, I missed that. Well, it seems that the debugger was not
maintained after Mono.GetOptions was removed from Mono trunk.

Instead of waiting for someone to fix this, install/copy
Mono.GetOptions.dll from Mono 2.6 into your /opt/mono/
prefix. Don't forget to gacutil -i it as well.

Robert


 Sergey Zhukov


 Robert Jordan wrote:

 On 24.05.2010 21:07, Robert Jordan wrote:
 On 24.05.2010 20:56, xplicit wrote:

 You're seeing this error because mdb's configure is not finding
 the pc file of your own private Mono installation.

 Set PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig

 and configure should succeed. See
 http://www.mono-project.com/Parallel_Mono_Environments.

 Additionally, the attached patch is required for mdb trunk
 because Mono's pc name has changed from mono to mono-2.

 Robert



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Cannot compile monodebugger with mono from svn trunk

2010-05-24 Thread Michael Hutchinson
On Mon, May 24, 2010 at 2:56 PM, xplicit s...@ngs.ru wrote:

 I tried to compile monodebugger with mono from trunk and could not.

FWIW, are you sure you want MDB? Since Mono 2.6 there's a new SDB
debugger built into the Mono runtime by default, which MonoDevelop 2.2
supports by default without any extra addins.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list