PyCharm Professional 2024.3 not stopping at breakpoints

PyCharm 2024.3 (Professional Edition)
Build #PY-243.21565.199, built on November 13, 2024
Licensed to Marcos Stival
Subscription is active until November 13, 2025.
For educational use only.
Runtime version: 21.0.5+8-b631.16 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: 2048M
Cores: 20
Registry:
 ide.experimental.ui=true
 i18n.locale=
Non-Bundled Plugins:
 org.jetbrains.plugins.go-template (243.21565.122)
 mobi.hsz.idea.gitignore (4.5.4)
 com.github.copilot (1.5.29.7524)



PyCharm Professional 2024.3 not stopping at breakpoints.

I run my main.py app which spawns a chrome headless with selenium. With my breakpoints set it correctly stops the first time. 

If I close the selenium window or stop the program execution or re run as debug, it fails to stop at any breakpoint.

If I close the IDE and open it again, then it stops again at the breakpoints.
 

3

Same problem. I've just downloaded fallback version 2024.2.5 and debuger stops at breakpoints normally.

0

There are more details on my case.

PyCharm 2024.3.1 (Professional Edition)
Build #PY-243.22562.180, built on December 11, 2024
Runtime version: 21.0.5+8-b631.28 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-51-generic
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
 debugger.watches.in.variables=false
 documentation.show.toolbar=true
 i18n.locale=
Non-Bundled Plugins:
 com.intellij.classic.ui (243.21565.122)
 name.kropp.intellij.makefile (243.21565.122)
 com.intellij.ml.llm (243.22562.251.6)
Current Desktop: ubuntu:GNOME

I use docker + SSH remote interpreter.

When I run project in debug mode in 2024.2.5 I see on console next

import sys; print('Python %s on %s' % (sys.version, sys.platform))
ssh://root@127.0.0.1:9101/usr/local/bin/python -u /root/.pycharm_helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client 127.0.0.1 --port 59857 --file /app/manage.py runserver 0.0.0.0:8000
Connected to pydev debugger (build 242.24807.21)

But when I run debug in 2024.3.1 then I see next

import sys; print('Python %s on %s' % (sys.version, sys.platform))
/usr/local/bin/python /root/.pycharm_helpers/pydev/pydevd.py --multiprocess --qt-support=auto --port 29781 --file /tmp/pycharm_project_323/manage.py runserver 0.0.0.0:8000 

There is no message Connected to pydev debugger (build 242.24807.21)

0

That what I found in log file

2024-12-22 17:44:53,183 [2129487]   WARN - #c.j.p.d.p.t.ClientModeDebuggerTransport - [2058103262] Handshake failed
2024-12-22 17:44:53,184 [2129488]   WARN - #c.i.s.i.s.sshj - <<chan#496 / open>> woke to: Opening `direct-tcpip` channel failed: Connection refused
2024-12-22 17:44:53,185 [2129489]   INFO - #c.i.s.i.s.sshj - Error in `SSHJ local tunnel for SshjSshConnection(root@127.0.0.1)@17d4a6b4: Local client /127.0.0.1:39124 ==> Local server 127.0.0.1:29781 ==> Remote server localhost:29781`: net.schmizz.sshj.connection.channel.OpenFailException: Connection refused

If I connect to docker container and try to run next command then nothing happens.

/usr/local/bin/python /root/.pycharm_helpers/pydev/pydevd.py --multiprocess --qt-support=auto --port 29781 --file /tmp/pycharm_project_323/manage.py runserver 0.0.0.0:8000 

But if additionally --client 127.0.0.1 is used then I got 

Could not connect to 127.0.0.1: 29781
Traceback (most recent call last):
  File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 467, in start_client
    s.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused
Could not connect to 127.0.0.1: 29781
Traceback (most recent call last):
  File "/root/.pycharm_helpers/pydev/pydevd.py", line 2243, in main
    debugger.connect(host, port)
  File "/root/.pycharm_helpers/pydev/pydevd.py", line 704, in connect
    s = start_client(host, port)
  File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 467, in start_client
    s.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused

 

0

I hope that this will be fixed in new version after holidays. As for now I just have to rollback to 2024.2

sudo snap info pycharm-professional
sudo snap switch --channel=2024.2/stable pycharm-professional
sudo snap refresh pycharm-professional

Also I mentioned that add new interpreter UI was changed. So, I suppose that in 2024.3 developers broken something.

0

请先登录再写评论。