Thanks for the quick patch Tomas, works fine!

I found it even more useful when I changed the DebuggerBrowsableState of
the values to Collapsed (was Never) in RubyScope.cs. With this I can
expand and see values of ruby-arrays (otherwise the debugger just shows
for arrays "{Ruby.Builtins.RubyArray}" that is not very useful in itself
and cannot be expanded):

[DebuggerDisplay("{_value}", Name = "{_name,nq}", Type =
"{_valueClassName,nq}")]
internal struct VariableView {
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private readonly string/*!*/ _name;
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)] // Was: Never
private readonly object _value;
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private readonly string/*!*/ _valueClassName;
public VariableView(string/*!*/ name, object value, string/*!*/
valueClassName) {
_name = name;
_value = value;
_valueClassName = valueClassName;
}
}

Robert Brotherus
Software architect
Napa Ltd
Tammasaarenkatu 3, Helsinki FI-00180
P.O.Box 470, Helsinki FI-00181

Tel. +358 9 22 813 1 
Direct. +358 9 22 813 611 
GSM +358 45 11 456 02 
Fax. +358 9 22 813 800 

Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
www.napa.fi <http://www.napa.fi/>  



  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tomas Matousek
Sent: 6. toukokuuta 2008 10:34
To: IronRuby External Code Reviewers
Cc: [email protected]
Subject: [Ironruby-core] Code Review: RubyScopeDebugView



tfpt review /shelveset:RubyScopeDebugView;REDMOND\tomat

 

Implements DebuggerProxyType for RubyScope so that locals and scope
attributes display nicely in watches.

 

 

 

def foo

  a = 1

  b = 2

  

  1.times {

    c = a + b

  }  

end

foo

 

Notice the Ruby class name in the third column 8-)

 

Tomas

 

<<image001.png>>

_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to