[squeak-dev] The Inbox: System-ct.1121.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Mon Nov 18 08:30:39 UTC 2019


Hi Christoph.

-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.

Best,
Marcel
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:
http://source.squeak.org/inbox/System-ct.1121.mcz

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

Name: System-ct.1121
Author: ct
Time: 15 November 2019, 7:46:50.580005 pm
UUID: 3a1b265a-b900-0f4f-b58f-2ec712db18ca
Ancestors: System-mt.1119

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...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191118/f48cb6c4/attachment.html>


More information about the Squeak-dev mailing list