Search code examples
pythondebuggingpycharmconsolecode-completion

Pycharm debugger console not autocompleting variables created in the debugger console


I have just upgraded to PyCharm 2023.3.3 community edition and am experiencing a weird issue that hasn't occurred before. System is Windows 10 64 bit, and this has worked fine on this machine before.

When I debug a script and hit a breakpoint and the program is suspended and the debugger window is opened, autocomplete doesn't seem to work on new variables i create in the debugging console, however it works on variables created in the script before the breakpoint was hit.

e.g., Script

Script and breakpoint

Debugging console showing autocomplete working for variable testing but not test

enter image description here

Any ideas why the debugging console is not autocompleting test? and how I could fix this?


Solution

  • Open Settings | Build, Execution, Deployment | Console and switch Code Completion to Runtime. Relevant ticket in PyCharm's issue tracker - PY-64055.