diff --git a/DoRunner/JumpRuntimePointerRunner.cs b/DoRunner/JumpRuntimePointerRunner.cs index e81d607..53891ce 100644 --- a/DoRunner/JumpRuntimePointerRunner.cs +++ b/DoRunner/JumpRuntimePointerRunner.cs @@ -17,6 +17,7 @@ namespace Convention.RScript.Runner { depth = jumpResult.Item1; lastLayer = jumpResult.Item2; + context.CurrentRuntimePointer = target; } else { diff --git a/RScriptContext.cs b/RScriptContext.cs index 3669965..b90ea34 100644 --- a/RScriptContext.cs +++ b/RScriptContext.cs @@ -266,9 +266,16 @@ namespace Convention.RScript public int StepCount { get; private set; } +#if DEBUG + public List StepStack = new(); +#endif + internal object RunNextStep(ExpressionParser parser) { StepCount++; +#if DEBUG + StepStack.Add(CurrentSentence); +#endif var sentence = CurrentSentence; try {