Debugger not attached in Docker setup
It was working fine in Win 10, when i moved to Win 11 i am facing this problem :(
Error:

File "/usr/local/lib/python3.12/site-packages/_pydevd_bundle/pydevd_comm.py", line 108, in <module>
from _pydevd_bundle.pydevd_tables import exec_table_command
File "/usr/local/lib/python3.12/site-packages/_pydevd_bundle/pydevd_tables.py", line 7, in <module>
from _pydevd_bundle.tables.images.pydevd_image_loader import load_image_chunk
ModuleNotFoundError: No module named '_pydevd_bundle.tables'
code used to attach:
import pydevd_pycharm
pydevd_pycharm.settrace('host.docker.internal', port=5678, stdoutToServer=True, stderrToServer=True)
in Docker:
RUN pip3 install pydevd_pycharm
Environment:
PyCharm 2024.2 (Professional Edition)
Build #PY-242.20224.347, built on August 9, 2024
Licensed to Siemens AG
Runtime version: 21.0.3+13-b509.4 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 12
Registry:
ide.balloon.shadow.size=0
ide.experimental.ui=true
ide.images.show.chessboard=true
Non-Bundled Plugins:
org.intellij.RegexpTester (2.2.0)
pl.sudo.imageviewer.python (4.2.2)
com.github.linwancen.drawgraph (1.22.2025.01.18_13.04)
PlantUML integration (7.11.2-IJ2023.2)
com.github.srwi.pixellens (0.4.1)
org.sonarlint.idea (10.17.0.80539)
com.github.copilot (1.5.35-242)
请先登录再写评论。
Hi vikram ,
As I mentioned in the support ticket, please try specifying a particular version of
pydevd-pycharmin yourDockerfile. For example: