Skip to content

Commit

Permalink
new util: BlockClosure>>#traceAndDebugOnce
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover committed Dec 28, 2023
1 parent 4bee159 commit 540f7e3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*TraceDebugger-UI-debugging
debugTrace
"Open a trace debugger on the receiver that is ready for evaluating it step by step."

^ TraceDebugger openForBlock: self
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*TraceDebugger-UI-debugging
traceAndDebugOnce
"Evaluate the receiver and answer the result. Trace the evaluation and display the result in a trace debugger unless we already done it once, similarly to #haltOnce."

| result |
self haltOnceEnabled ifFalse: [^ self value].
self clearHaltOnce.
[result := self value] traceAndDebug.
^ result
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"class" : {
},
"instance" : {
"debugTrace" : "ct 12/31/2021 00:54",
"traceAndDebug" : "ct 1/24/2022 21:24" } }
"debugTrace" : "ct 12/28/2023 23:54",
"traceAndDebug" : "ct 1/24/2022 21:24",
"traceAndDebugOnce" : "ct 12/28/2023 23:56" } }

1 comment on commit 540f7e3

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed Screenshots/Help

This push caused a change of 1 artifact against the default branch:

Please sign in to comment.