From a5b2727de4242062e9055a8688dd87428cbee812 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Sun, 3 Oct 2021 11:08:17 -0300 Subject: [PATCH] Stop importing breakpoint/skip line data if > ubound(arrays) --- source/ide/ide_methods.bas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index a5689230e..716c1f9e1 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -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