Files
openide/python/helpers/jupyter_debug/pydev_jupyter_utils.py
Natalia.Murycheva 4d69d6b1e1 [J-Debugger] PY-82513 Subsequent debug sessions don't start correctly #(PY-82513, PY-64509, PY-79518) Ready for Merge
This is a flaky bug: in the case of the second and following debug sessions, the Jupyter Debugger stops at the random place at the debug beginning.
In Python Debugger, we add to threads an additional attribute called additional_thread_info.
The debugger's additional_thread_info stores the current execution state (run/suspended) and step commands.
**When these values weren't cleared after a debug session ended,**
threads with "suspended" state would carry over to the next session, causing it to stop immediately upon start.

Fixed by properly resetting threads' debug state between debug sessions.

(cherry picked from commit ba23933f616c79f9a9e0307f0830f53eebc84ccd)

GitOrigin-RevId: a24425601b0e6a5a497cf974e4a0b4d10e947dab
2025-08-08 20:24:22 +00:00

6.1 KiB