The Inbox: Tools-mt.655.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Tools-mt.655.mcz

commits-2
A new version of Tools was added to project The Inbox:
http://source.squeak.org/inbox/Tools-mt.655.mcz

==================== Summary ====================

Name: Tools-mt.655
Author: mt
Time: 19 November 2015, 11:53:37.869 am
UUID: 11fda559-e378-4046-a5f1-a2b1396c81ce
Ancestors: Tools-mt.654

Adds a convenient way for "printf-debugging". You can send #observe to any object in any situation. Transcript will show the printString, the location of the call, and the current time stamp.

=============== Diff against Tools-mt.654 ===============

Item was added:
+ ----- Method: Object>>observe (in category '*Tools-Debugger') -----
+ observe
+
+ Transcript dependents
+ detect: [:e | e isTextView]
+ "ifFound: [:e | e activate]"
+ ifNone: [Transcript open].
+
+ Transcript showln: ('[{1}] [{2} {3}] {4}' format: {
+ Time now print24.
+ thisContext sender method methodClass.
+ thisContext sender method selector.
+ self printString}).!


Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: Tools-mt.655.mcz

marcel.taeumel
What do you think?



The idea came from a colleague and remembering Chris' usage of #inspect and his complaint about Object >> #inspect not return the object anymore but the inspector's tool window, this might be a nice addition.

myObject observe isDoing observe someCrazy observe stuff observe.

Best,
Marcel