Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1706b58

Browse files
committed
[[ Bug 21017 ]] Skip tracing resizeControl
This patch adds resizeControl to resizeStack and moveStack as undebuggable handlers. Debugging them causes the IDE to lock up .
1 parent c8eb359 commit 1706b58

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Toolset/libraries/revdebuggerlibrary.livecodescript

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ local sLastBreakInfo
2828
#
2929
################################################################################
3030

31+
constant kUndebuggableHandlers = "moveStack resizeStack resizeControl"
32+
3133
# Description
3234
# Initializes the debugger, should be called on IDE startup or when script debug mode is turned on.
3335
private command __Initialize
@@ -2359,12 +2361,12 @@ on traceError pHandler, pLine, pPosition, pError
23592361
pass traceError
23602362
end if
23612363

2362-
-- We can not flush moveStack and resizeStack messages so the IDE will lock up if we try and trace
2364+
-- The IDE will lock up if we try and trace messages repeatedly coming from OS
23632365
local tContexts
23642366
put the executionContexts into tContexts
23652367
local tLine
23662368
repeat for each line tLine in tContexts
2367-
if item -2 of tLine is among the words of "moveStack resizeStack" then
2369+
if item -2 of tLine is among the words of kUndebuggableHandlers then
23682370
pass traceError
23692371
end if
23702372
end repeat
@@ -2432,12 +2434,12 @@ on traceBreak pHandler, pLine
24322434
end if
24332435

24342436
if "development" is in the environment then
2435-
-- We can not flush moveStack and resizeStack messages so the IDE will lock up if we try and trace
2437+
-- The IDE will lock up if we try and trace messages repeatedly coming from OS
24362438
local tContexts
24372439
put the executionContexts into tContexts
24382440
local tLine
24392441
repeat for each line tLine in tContexts
2440-
if item -2 of tLine is among the words of "moveStack resizeStack" then
2442+
if item -2 of tLine is among the words of kUndebuggableHandlers then
24412443
pass traceBreak
24422444
end if
24432445
end repeat

notes/bugfix-21017.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add `resizeControl` to the list of handlers not to trace in the debugger as doing so locks up the IDE

0 commit comments

Comments
 (0)