Can not use python debug server in IntelliJ
Hello, I am an IntelliJ IDEA Ultimate user trying to follow these instructions: https://www.jetbrains.com/help/idea/run-debug-configuration-python-remote-debug.html
It is my understanding that this should work, my python plugin is installed and updated. I just updated to intellij 2022.3.3, however I have tried this across multiple older versions as well, always with the same result.
The `Run/Debug` config instructions tell me to run the following command to install the library:
pip install pydevd-pycharm~=223.8836.41
which gives the following package: pydevd-pycharm-223.8836.43.tar.gz
Trying to install 223.8836.41 causes an error:
ERROR: No matching distribution found for pydevd-pycharm==223.8836.41
The debug server doesn't appear to like anything but an exact match
Waiting for process connection…
Connected to pydev debugger (build 223.8836.43)
Warning: wrong debugger version. Use pycharm-debugger.egg from PyCharm installation folder
Or execute: 'pip install pydevd-pycharm~=%223.8836.41'
I've looked at my install folder for IntelliJ and can't find any debugger egg in any of the folders there.
I'm guessing the available package versions on pypi correspond with pycharm builds, not intellij builds. It doesn't seem possible to install the correct client package for my version of IntelliJ. The documentation is written like it should work for Intellij users as well. A JetBrains commenter in this StackOverflow thread indicate this should work on IntelliJ. Is there something I'm doing wrong? Thank you
请先登录再写评论。
Unfortunately, this is a known issue https://youtrack.jetbrains.com/issue/PY-40956/Wrong-pydevd-pycharm-version-specified-in-IntalliJ-Remote-Debug-configuration
Please follow the issue for updates, feel free to vote and comment, and let us know if you need any help. If you're not familiar with YouTrack, please see https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications
As a workaround, please use the following commands to install the module:
For 2022.3.3: `pip install pip install pydevd-pycharm~=223.8836.43`
For 2023.1: `pip install pydevd-pycharm~=231.8109.197`
Hello, thank you for the reply. The linked issue is only part of the problem, and the workaround you suggested does not work. The debug server in IntelliJ refuses to allow the pydevd client version 223.8836.43 to connect, you can see an example of the server log in my original post. It seems to me like there's a major regression here, assuming this worked properly at one point in time.