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

Commit a649114

Browse files
Merge pull request #1935 from montegoulding/bugfix-21017
[[ Bug 21017 ]] Skip tracing resizeControl
2 parents ea22631 + 1706b58 commit a649114

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
@@ -2362,12 +2364,12 @@ on traceError pHandler, pLine, pPosition, pError
23622364
pass traceError
23632365
end if
23642366

2365-
-- We can not flush moveStack and resizeStack messages so the IDE will lock up if we try and trace
2367+
-- The IDE will lock up if we try and trace messages repeatedly coming from OS
23662368
local tContexts
23672369
put the executionContexts into tContexts
23682370
local tLine
23692371
repeat for each line tLine in tContexts
2370-
if item -2 of tLine is among the words of "moveStack resizeStack" then
2372+
if item -2 of tLine is among the words of kUndebuggableHandlers then
23712373
pass traceError
23722374
end if
23732375
end repeat
@@ -2435,12 +2437,12 @@ on traceBreak pHandler, pLine
24352437
end if
24362438

24372439
if "development" is in the environment then
2438-
-- We can not flush moveStack and resizeStack messages so the IDE will lock up if we try and trace
2440+
-- The IDE will lock up if we try and trace messages repeatedly coming from OS
24392441
local tContexts
24402442
put the executionContexts into tContexts
24412443
local tLine
24422444
repeat for each line tLine in tContexts
2443-
if item -2 of tLine is among the words of "moveStack resizeStack" then
2445+
if item -2 of tLine is among the words of kUndebuggableHandlers then
24442446
pass traceBreak
24452447
end if
24462448
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)