[squeak-dev] The Inbox: System-ct.1121.mcz
marcel.taeumel at hpi.de
Mon Nov 18 08:30:39 UTC 2019
-1 See comment for Morphic-ct.1590
Such additional hooks make custom tool sets more expensive to create and maintain. There is little added value.
Debugging code means debugging processes. Just create a process with your code (via a block) and call #debug on that process object.
Am 15.11.2019 19:47:12 schrieb commits at source.squeak.org <commits at source.squeak.org>:
A new version of System was added to project The Inbox:
==================== Summary ====================
Time: 15 November 2019, 7:46:50.580005 pm
Add convenience method for debugging a block at a method.
=============== Diff against System-mt.1119 ===============
Item was added:
+ ----- Method: ToolSet class>>debugBlock:runUntilMethod:withTitle: (in category 'debugging') -----
+ debugBlock: aBlock runUntilMethod: aMethodReference withTitle: aString
+ | process |
+ process := Process forBlock: aBlock runUntil: [:context |
+ context method methodReference = aMethodReference].
+ process isTerminated ifTrue: [
+ ^ self inform: 'Method to debug was not reached'].
+ ^ process debugWithTitle: aString!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev