VSC Debugger does not update variables

Godot Version

4.6.1

Question

Hi! I’m experiencing an issue with the debugger in VS Code using the Godot Tools plugin. When execution hits a breakpoint, the debugger pauses correctly and displays the variables, but their values don’t update afterward as expected.
For example, suppose I have:

  1. var a = 0

  2. a = 1

  3. // some other code

If I set a breakpoint on line 1 and then continue execution to line 3, the debugger still shows a = 0. However, if I place the breakpoint directly on line 3, it correctly shows a = 1.

So it seems that the debugger captures the state at the breakpoint, but doesn’t update the variable values afterward.

The configuration is the simplest possible (i also tried to use the ‘complete’ one proposed by the documentation).

{
    "name": "Launch",
    "type": "godot",
    "request": "launch",
}

I saw that this was a bug of a previous version of godot-tools that should be fixed now (i have the latest version 2.6.1).

Thanks!