[MonoDevelop] Problem with debug - watch variables

Tomcart vitezslav.zivota at gmail.com
Sat Aug 15 03:24:27 EDT 2009


I'm unable to watch variables, or inspect local variables in MonoDevelop 2.0
on 64bit Ubuntu 9.04. In following code:

using System;

namespace testc
	class MainClass
		public static void Main(string[] args)
			TestClass tc = new TestClass();
			int q = tc.Test(0);
	public class TestClass
		public TestClass()
		public int Test(int x) {
			int result = x * 2;
			return result;


I can watch variable q in method Main, but when I try to watch variable x in
method Test - add any variable to watch panel in scope of method test, I
will get following unhandled exception:

System.NullReferenceException: Object reference not set to an instance of an

Server stack trace: 
  at DebuggerServer.BacktraceWrapper.GetExpressionCompletionData (Int32
frameIndex, System.String exp) [0x00000] 
  at (wrapper managed-to-native)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage
(System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x00000] 

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]  

But if I add variable x in scope of Main, it will display the right value in
method Test.

Any idea? Thanks.

View this message in context: http://www.nabble.com/Problem-with-debug---watch-variables-tp24982161p24982161.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20090815/82078a3c/attachment-0001.html 

More information about the Monodevelop-list mailing list