1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-26 17:10:38 +00:00

Stop importing breakpoint/skip line data if > ubound(arrays)

This commit is contained in:
FellippeHeitor 2021-10-03 11:08:17 -03:00
parent 005697e115
commit a5b2727de4

View file

@ -17256,6 +17256,7 @@ SUB IdeImportBookmarks (f2$)
IF x THEN
FOR i = 1 TO x
j = VAL(ReadSetting$(".\internal\temp\debug.ini", f2$, "breakpoint" + STR$(i)))
IF j > UBOUND(IdeBreakpoints) THEN EXIT FOR
IdeBreakpoints(j) = -1
NEXT
END IF
@ -17264,6 +17265,7 @@ SUB IdeImportBookmarks (f2$)
IF x THEN
FOR i = 1 TO x
j = VAL(ReadSetting$(".\internal\temp\debug.ini", f2$, "skip" + STR$(i)))
IF j > UBOUND(IdeSkipLines) THEN EXIT FOR
IdeSkipLines(j) = -1
NEXT
END IF