Exactly. The main idea is that you custom views for your objects. For example, when looking at a Glamour Browser object you see its structure visually. This can be pretty important when debugging such browsers.

Inline image 1


The way you add this is:
GLMBrowser>>gtInspectorOpenTreeIn: composite
<gtInspectorPresentationOrder: 30>  
composite roassal 
title: 'Tree';
painting: [:view :b | 
b viewTreeOn: view ]

I also recently extended ROView with a simple display to show a simple tree of elements. This again can be useful when debugging the creation of views:

gtInspectorElementsHierarchyIn: composite
<gtInspectorPresentationOrder: 20>
composite tree 
title: 'Elements';
display: [ :each | {each} ];
children: #elements

But, here is another thing. Because it is directly in the code of the object, you can even use the Methods editor for each object to extend the inspector from within the inspector while inspecting :). The UI is not yet what it should or could be, but it does create new possibilities. This is similar to what happens in Moose when during analysis we realize that we need a visualization, so we switch to an easel, write the visualization and continue the interaction with the objects directly there. This can be very powerful if done right.

Doru


On Wed, Dec 4, 2013 at 3:09 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
> My idea is to provide a set of hands-on stories on how these tools supported some debugging/inspecting scenario. For example like this one:
> http://www.humane-assessment.com/blog/debugging-the-debugger-with-the-inspector

The idea is to insert in my classes a method like:
gtInspectorSourceIn: composite
     <gtInspectorPresentationOrder: 30>
    … ?


Not sure to understand

Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
www.tudorgirba.com

"Every thing has its own flow"