Mantis - Squeak
Viewing Issue Advanced Details
1633 Tools minor always 08-08-05 22:06 08-08-05 22:11
rh  
 
normal  
new  
open  
none    
none  
0001633: [ENH] Debugger showing objects on the stack
Simple change to show objects on the stack in debugger's temp vars pane
(named _stack1, _stack2 ... etc). Not perfect but works ok, useful to
inspect e.g. result of a message send


'From Squeak3.6 of ''6 October 2003'' [latest update: 0005424] on 26 September 2004 at 11:47:50 pm'!
"Change Set: DebuggerShowStackObjects
Date: 26 September 2004
Author: Radoslav Hodnicak

Simple change to show objects on the stack in debugger's temp vars pane (named _stack1, _stack2 ... etc). Not perfect but works ok, useful to inspect e.g. result of a message send"!


!ContextVariablesInspector methodsFor: 'accessing' stamp: 'rh 9/26/2004 01:00'!
fieldList
    "Refer to the comment in Inspector|fieldList."

    | list |
    object == nil ifTrue: [^Array with: 'thisContext'].
    list := (OrderedCollection with: 'thisContext' with: 'all temp vars') , object tempNames.
    1 to: object stackPtr - object method numTemps do: [:i| list add: '_stack', i printString].
    ^list! !

!ContextVariablesInspector methodsFor: 'updating' stamp: 'rh 9/26/2004 01:11'!
update

    self changed: #fieldList.
    selectionIndex > self fieldList size ifTrue: [selectionIndex := self fieldList size].
    super update.! !"
 DebuggerShowStackObjects-rh.cs.gz [^] (569 bytes) 08-08-05 22:11

Notes
(0002212)
KenCausey   
08-08-05 22:09   
mike@mjr104.co.uk:

"I don't think this originally came in as an attachment so I've added it
(assuming this is helpful).

I've always wanted this feature and it's useful for me. I don't know
too much about the debugger but it seems to be a small and local change.
 I've tested it on various expressions and it seems to work."

(attaching DebuggerShowStackObjects-rh.cs.gz)
(0002213)
KenCausey   
08-08-05 22:11   
I loaded this into 3.8-6665-basic without errors but did not test further.