From 82d4de881f21111e1e71fbe802dd564f37be1c7a Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Sat, 21 Aug 2021 17:39:41 -0300 Subject: [PATCH] Keeps array index selection made before entering Debug mode. --- source/ide/ide_methods.bas | 2 +- source/qb64.bas | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index ebd869a6c..ca5886cfb 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -737,7 +737,7 @@ FUNCTION ide2 (ignore) IdeDebugMode = 1 FOR x = 1 TO totalVariablesCreated - usedVariableList(x).mostRecentValue = "" + IF usedVariableList(x).isarray = 0 THEN usedVariableList(x).mostRecentValue = "" NEXT EnterDebugMode: diff --git a/source/qb64.bas b/source/qb64.bas index 9567d655a..51680fadd 100644 --- a/source/qb64.bas +++ b/source/qb64.bas @@ -25981,10 +25981,11 @@ SUB manageVariableList (__name$, __cname$, localIndex AS LONG, action AS _BYTE) usedVariableList(i).name = usedVariableList(i).name + "()" ELSE usedVariableList(i).isarray = 0 - usedVariableList(i).watchRange = "" - usedVariableList(i).indexes = "" - usedVariableList(i).elements = "" END IF + usedVariableList(i).watchRange = "" + usedVariableList(i).indexes = "" + usedVariableList(i).elements = "" + usedVariableList(i).elementOffset = 0 totalVariablesCreated = totalVariablesCreated + 1 END IF CASE ELSE 'find and mark as used