Debugger issues after upgrade to 2024.3.2 Pro

After upgrading to the mentioned version (Build #PY-243.23654.177, in the help window) I experience two issues after opting to install the cython extensions as suggested by PyCharm pop-ups. 

The cython seems to fail to set-up:

warning: failed to delete old cython speedups. Please delete all *.so files from the directories "/home/user/.cache/JetBrains/PyCharm2024.3/cythonExtensions/_pydevd_bundle_ext" and “/home/user/.cache/JetBrains/PyCharm2024.3/cythonExtensions/_pydevd_frame_eval_ext”

I don't seem to have any .so files in home/user/.cache/JetBrains/PyCharm2024.3/cythonExtensions at all. It only contains:

├── build
│   └── _pydevd_bundle
│       └── pydevd_cython.o
└── _pydevd_bundle_ext
   └── __init__.py
 

And second thing, it seems that evaluating expressions in the debug window no longer works, it seems to ignore the expressions entered at the watches tab most of the time, which may have preceded my extension cython build attempts, but I only notice this behavior as of after trying to switch to the cython built debugger. 

I can locate the cython build command in idea.log:

2025-02-11 13:52:44,156 [146895211]   INFO - #c.j.p.d.PyCythonExtensionWarning - Compile Cython Extensions /home/user/ssd/intel-optane/projects/ergonomy/nui/subprojects/nui/core/venv/bin/python /home/user/.local/share/JetBrains/Toolbox/apps/pycharm-professional-3/plugins/python-ce/helpers/pydev/setup_cython.py build_ext --build-lib /home/user/.cache/JetBrains/PyCharm2024.3/cythonExtensions --build-temp /home/user/.cache/JetBrains/PyCharm2024.3/cythonExtensions/build

And the only other log message I can correlate to it is the one preceding it which says:

2025-02-11 13:52:44,156 [146895211]   WARN - #c.j.p.PythonHelpersLocator - Helpers pro root does not exist /home/user/.local/share/JetBrains/Toolbox/apps/pycharm-professional-3/plugins/python-ce/helpers-pro

There's no error when I run the above command plucked from the log, manually, presumably more needs to happen for it to actually work, and nothing else in the log seems to say much about it.

There's indeed no helpers-pro subdirectory at the above mentioed warning line directory, but only one called `helpers`.

Tinkering a little with renaming `helpers` to `helpers-pro`, and cloning helpers to helpers-pro clearly shows through idea.log that some files are expected in each of the two:

e.g. Assertion failed: No 'typeshed' inside /home/user/.local/share/JetBrains/Toolbox/apps/pycharm-professional-3/plugins/python-ce/helpers
java.lang.Throwable: Assertion failed: No 'typeshed' inside /home/user/.local/share/JetBrains/Toolbox/apps/pycharm-professional-3/plugins/python-ce/helpers

At which point I'd rather not tinker any deeper.

This is a PyCharm Pro instance upgraded through the toolbox app without any noticeable error and otherwise noramlly operating. Maybe something in the upgrade process isn't placing all necessary files for the debugger cython extension building. 

4

I reverted the attempt to let PyCharm install its debugger extensions by going to the PyCharm registry and disabling python.debug.enable.cython.speedups which I was taught on an earlier issue way back, which solves my second issue of watch expressions being ignored. So I'm good now, the debugger is working as before. 

Would be nice to fix up building and using the faster extension version of it.

1

Hi Matan,

Unfortunately, you faced a known issue PY-78729. Disabling python.debug.enable.cython.speedups in registry looks like a valid workaround, until it is resolved.

Sorry for the inconvenience.

0

请先登录再写评论。