NewTools icon indicating copy to clipboard operation
NewTools copied to clipboard

Exception>>signalIn: uses context rather than messageText as debugger title

Open emdonahue opened this issue 2 years ago • 0 comments

Evaluating Exception>>signal in a playground:

Exception signal

Correctly opens a debugger with the title "Exception," which is the defaultDescription of Exception.

Evaluating instead:

Exception signalIn: thisContext

Incorrectly opens a debugger with the title "UndefinedObject>>DoIt," which is the name of the context rather than the Exception's description.

This behavior hides the actual Exception message when the debugger is opened in favor of the less useful context.

It is caused by StDebuggerActionModel>>statusStringForContext, which returns self contextPredicate printDescription rather than self exception defaultDescription. These should be swapped.

emdonahue avatar Sep 02 '22 11:09 emdonahue