From 3a8a6d333821bf43e6878108ddfad9d5f5efc0fe Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Sat, 11 Nov 2023 10:20:46 -0300 Subject: [PATCH] wip --- .../_pydevd_sys_monitoring/pydevd_sys_monitoring.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/org.python.pydev.core/pysrc/_pydevd_sys_monitoring/pydevd_sys_monitoring.py b/plugins/org.python.pydev.core/pysrc/_pydevd_sys_monitoring/pydevd_sys_monitoring.py index 518cbb7beb..efa269deff 100644 --- a/plugins/org.python.pydev.core/pysrc/_pydevd_sys_monitoring/pydevd_sys_monitoring.py +++ b/plugins/org.python.pydev.core/pysrc/_pydevd_sys_monitoring/pydevd_sys_monitoring.py @@ -554,10 +554,11 @@ def _line_event(code, line): # if result: # frame = result - if info.pydev_state == STATE_SUSPEND: - print('suspend...') - py_db.do_wait_suspend(thread_info.thread, frame, 'line', None) - return + if info.pydev_state == STATE_SUSPEND: + # Note: it's possible that it was suspended with a pause (and we'd stop here too). + print('suspend...') + py_db.do_wait_suspend(thread_info.thread, frame, 'line', None) + return # Ok, did not suspend due to a breakpoint, let's see if we're stepping. stop_frame = info.pydev_step_stop