Geek Culture
Published in

Geek Culture

Pycharm 2022.2 upgrade and Docker issues

I have installed latest Pycharm Proffessional edition and guess what? The remote debugging to the Docker container is not working.

https://intellij-support.jetbrains.com/hc/en-us/community/posts/6870884026898-Pycharm-2022-2-upgrade-and-Docker-issues you can see the proof from Intellij that this is regression. This regression points to this ticket “Attaching debugger to Django console fails with Docker-compose” https://youtrack.jetbrains.com/issue/PY-54084/Attaching-debugger-to-Django-console-fails-with-Docker-compose that was opened 4 month ago, close to 2022.1 release.

So, this is workaround:

1. go to Help | Find Action | Registry

2. disable python.use.targets.api

3. recreate the interpreter from scratch

https://intellij-support.jetbrains.com/hc/en-us/community/posts/6870884026898-Pycharm-2022-2-upgrade-and-Docker-issues

P.S. In the “Using GNOME Keyring in Docker Container” story I’ve briefly touched the usage of the Pycharm Profesional and Docker. In those days there was limitation on --entrypoint — it worked only in debug mode. Nowadays, you can do run your docker image and -- entrypoint will be executed instead of the defined one.

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store