[squeak-dev] An idea for the debugger...

Eliot Miranda eliot.miranda at gmail.com
Sat Jan 27 00:16:20 UTC 2018


Marcel, thank you!

On Fri, Jan 26, 2018 at 11:08 AM, Marcel Taeumel <marcel.taeumel at hpi.de>
wrote:

> Hi Eliot,
>
> like this if you hit [SHIFT]+[YELLOW]?
>
>
> ... and implement this?
>
> Object >> inspectorMenu: aMenu for: anInspector
> "Can extend the inspector menu."
>
> Smalltalk isMorphic ifFalse: [^ self].
>
> aMenu
> add: 'Dance ', self printString
> target: self
> selector: #explore.
>
> Well, please find attached a change set. Have fun! ;-)
>
> Best,
> Marcel
>
> Am 26.01.2018 18:36:23 schrieb Eliot Miranda <eliot.miranda at gmail.com>:
> Hi All,
>
>     I'm lazy and also I don't write the most elegant UI code but I had an
> idea I want realized so I thought I'd see if I could interest anyone in
> implementing it.  Dora is doing amazing work with the Moldable Debugger but
> this is a poor man's alternative that can get us a lot of benefit.
>
> In the JIT I find myself wanting to run a number of doit while debugging
> to print out information, change virtual breakpoint locations (where a
> variable is tested and if the JIT is at the right point halt is sent)
>  etc.  Typically one has to type these into the receiver inspector in the
> bottom left of the debugger.  Having some strings in the paste buffer helps
> in not typing them but one has to load the paste buffer at least once
> before a debugging session and its tedious.
>
> I modified the inspectors in VMMaker already so that one can choose the
> default base used to display numbers because hexadecimal is much more
> useful in looking at machine code, the GC, object headers, etc.  So how
> about this...
>
> A class may implement something like receiverMenuForDebugging, either on
> the instance or the class side.  Whenever the receiver inspector is asked
> to open up the yellow/middle button menu on its list it checks for the
> presence of receiverMenuForDebugging and adds this as a submenu being the
> first item in the menu.  So one can write all the application specific
> snippets one wants and invoke them quickly and conveniently from this menu.
>
> Anyone interested in implementing this?  It would make my day, hell it
> would make my month, and make my year so much nicer :-).
>
> _,,,^..^,,,_
> best, Eliot
>
>
>
>
>


-- 
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180126/1129fda0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 15141 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180126/1129fda0/attachment-0001.png>


More information about the Squeak-dev mailing list