[Ironruby-core] Code Review: RubyScopeDebugView

Robert Brotherus robert.brotherus at napa.fi
Thu May 8 08:41:02 EDT 2008

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 =
internal struct VariableView {
private readonly string/*!*/ _name;
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)] // Was: Never
private readonly object _value;
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: Robert.Brotherus at napa.fi <mailto:Robert.Brotherus at napa.fi>  
www.napa.fi <http://www.napa.fi/>  


From: ironruby-core-bounces at rubyforge.org
[mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek
Sent: 6. toukokuuta 2008 10:34
To: IronRuby External Code Reviewers
Cc: ironruby-core at rubyforge.org
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





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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080508/ba88ee63/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 16278 bytes
Desc: image001.png
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080508/ba88ee63/attachment-0001.png>

More information about the Ironruby-core mailing list