Variable defined in console is missing in variable pane

I found that when doing debug, the variable defined in debug console didn't show in the variable pane. For example, if I run two commands in debug console a = 1 and b = 2. Only a is shown in variable pane, b is missing.

I am using PyCharm 2026.1.2 (professional) on Windows11. Is there anyone else having the same issue? 

0
1 comment

Hi Xanalee ,

This is a known issue in PyCharm 2026.1, tracked here: PY-87086. PyCharm 2026.1 moved to a new debugger engine, and the Variables pane no longer picks up variables you define in the Debug Console right away. It only refreshes on the next debugger action.

As a workaround, make one step in the debugger (for example, Step Over) after defining variables in the console. The pane will then refresh and show them.

The fix is already confirmed in PyCharm 2026.2 builds, so the issue should be resolved once you update to 2026.2 when it is released.

0

Please sign in to leave a comment.