X Tutup
Skip to content

Commit 512aaeb

Browse files
author
Johan Brichau
committed
Debugger opening in Pharo: fix for use in Pharo 11 and remove old code that is probably not relevant anymore
1 parent 6d08b16 commit 512aaeb

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed
Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
exceptions
22
openDebuggerOn: anError
3-
| process |
4-
process := Processor activeProcess.
5-
"If we are running in the UI process, we don't want to suspend the active process. The
6-
error was presumably triggered while stepping in the Debugger. If we simply immediately
7-
signal an UnhandledError, the debugger will catch this and display the signaling context.
8-
It isn't perfect or pretty but it works."
9-
(ProcessBrowser isUIProcess: process)
10-
ifTrue: [
11-
UnhandledError signalForException: anError ]
12-
ifFalse: [
13-
WorldState addDeferredUIMessage: [
14-
UIManager default
15-
requestDebuggerOpeningForProcess: process
16-
named: anError description
17-
inContext: anError signalerContext ].
18-
process suspend ]
3+
(OupsDebugRequest newForException: anError) submit

0 commit comments

Comments
 (0)
X Tutup