The Trunk: Tools-mt.1027.mcz

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

The Trunk: Tools-mt.1027.mcz

commits-2
Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.1027.mcz

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

Name: Tools-mt.1027
Author: mt
Time: 1 March 2021, 11:19:25.66938 am
UUID: 4a78193f-b0aa-1b42-9f4a-d588b979d0b6
Ancestors: Tools-mt.1026

Let warnings appear as "normal" as possible via #debugException:.

Note that the "normal" contents are prepared only in ToolSet >> #handleWarning: for unhandled warnings, which is transparent to the signaler. This interface, however, is for exception handlers that want to allow for post-exception debugging, which can also catch warnings.

=============== Diff against Tools-mt.1026 ===============

Item was changed:
  ----- Method: StandardToolSet class>>debugException: (in category 'debugging') -----
  debugException: anException
  "For convenience. Construct a helper process to debug an exception that occurred in the active process later on so that the active process can (try to) resume. Uses a temporary variable to access and copy the signaler context now before it gets GC'ed."
 
  | helperProcess |
  helperProcess := (Process
  forContext: anException signalerContext copyStack
  priority: Processor activeProcess priority)
  shouldResumeFromDebugger: false;
  yourself.
 
  Project current addDeferredUIMessage: [
  helperProcess
  debugWithTitle: anException description
+ full: false
+ contents: ((anException isKindOf: Warning)
+ ifTrue: [anException messageText])].!
- full: false].!