Commit 4b47d457 authored by Elizaveta Shashkova's avatar Elizaveta Shashkova
Browse files

PY-31451 Fix lines in debugger after changes in psi

parent df4d8311
Branches unavailable Tags unavailable
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -342,6 +342,8 @@ def process_net_command(py_db, cmd_id, seq, text):
py_db.consolidate_breakpoints(file, id_to_pybreakpoint, breakpoints)
if py_db.plugin is not None:
py_db.has_plugin_line_breaks = py_db.plugin.has_line_breaks()
if py_db.has_plugin_line_breaks:
py_db.frame_eval_func = None
py_db.set_tracing_for_untraced_contexts_if_not_frame_eval(overwrite_prev_trace=True)
py_db.enable_tracing_in_frames_while_running_if_frame_eval()
......
......@@ -1099,7 +1099,8 @@ class PyDB:
while not self.ready_to_run:
time.sleep(0.1) # busy wait until we receive run command
if self.break_on_caught_exceptions or (self.plugin and self.plugin.has_exception_breaks()) or self.signature_factory:
if self.break_on_caught_exceptions or self.has_plugin_line_breaks or self.has_plugin_exception_breaks \
or self.signature_factory:
# disable frame evaluation if there are exception breakpoints with 'On raise' activation policy
# or if there are plugin exception breakpoints or if collecting run-time types is enabled
self.frame_eval_func = None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment