PY-82449 Debug mode not working after last update

(cherry picked from commit c890ec6e8b15df1f629f3d1845e2c89b1e99ff81)

IJ-MR-168364

GitOrigin-RevId: bcd94cc3ad5ea744ed3bc5c9571d61750022bf42
This commit is contained in:
Egor.Eliseev
2025-07-07 19:06:57 +03:00
committed by intellij-monorepo-bot
parent e4d9cbe1aa
commit 2ca6bf52ec
48 changed files with 2434 additions and 2264 deletions

View File

@@ -7,7 +7,7 @@ from _pydev_bundle import pydev_log
from _pydevd_bundle.pydevd_frame import PyDBFrame
# ENDIF
version = 57
version = 58
if not hasattr(sys, '_current_frames'):

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,7 @@ pydev_log.debug("Using Cython speedups")
# from _pydevd_bundle.pydevd_frame import PyDBFrame
# ENDIF
version = 57
version = 58
if not hasattr(sys, '_current_frames'):

View File

@@ -240,6 +240,9 @@ def _should_enable_line_events_for_code(frame, code, filename, info, will_be_sto
plugin_manager = py_db.plugin
if info is None:
return False
stop_frame = info.pydev_step_stop
step_cmd = info.pydev_step_cmd
@@ -315,6 +318,9 @@ def _should_enable_line_events_for_code(frame, code, filename, info, will_be_sto
def _clear_run_state(info):
if info is None:
return
info.pydev_step_stop = None
info.pydev_step_cmd = -1
info.pydev_state = STATE_RUN
@@ -351,6 +357,9 @@ def _get_top_level_frame():
def _stop_on_unhandled_exception(exc_info, py_db, thread):
additional_info = _get_additional_info(thread)
if additional_info is None:
return
if not additional_info.suspended_at_unhandled:
additional_info.suspended_at_unhandled = True
stop_on_unhandled_exception(py_db, thread, additional_info,

View File

@@ -246,6 +246,9 @@ def _should_enable_line_events_for_code(frame, code, filename, info, will_be_sto
plugin_manager = py_db.plugin
if info is None:
return False
stop_frame = info.pydev_step_stop
step_cmd = info.pydev_step_cmd
@@ -321,6 +324,9 @@ def _should_enable_line_events_for_code(frame, code, filename, info, will_be_sto
def _clear_run_state(info):
if info is None:
return
info.pydev_step_stop = None
info.pydev_step_cmd = -1
info.pydev_state = STATE_RUN
@@ -357,6 +363,9 @@ def _get_top_level_frame():
def _stop_on_unhandled_exception(exc_info, py_db, thread):
additional_info = _get_additional_info(thread)
if additional_info is None:
return
if not additional_info.suspended_at_unhandled:
additional_info.suspended_at_unhandled = True
stop_on_unhandled_exception(py_db, thread, additional_info,