[squeak-dev] The Inbox: Tools-mt.655.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Nov 19 10:53:47 UTC 2015


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}).!



More information about the Squeak-dev mailing list