MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / _send_breakpoint_condition_exception

Method _send_breakpoint_condition_exception

pydevd.py:2000–2009  ·  view source on GitHub ↗

If conditional breakpoint raises an exception during evaluation send exception details to java

(self, thread, conditional_breakpoint_exception_tuple)

Source from the content-addressed store, hash-verified

1998 pydevd_sys_monitoring.restart_events()
1999
2000 def _send_breakpoint_condition_exception(self, thread, conditional_breakpoint_exception_tuple):
2001 """If conditional breakpoint raises an exception during evaluation
2002 send exception details to java
2003 """
2004 thread_id = get_thread_id(thread)
2005 # conditional_breakpoint_exception_tuple - should contain 2 values (exception_type, stacktrace)
2006 if conditional_breakpoint_exception_tuple and len(conditional_breakpoint_exception_tuple) == 2:
2007 exc_type, stacktrace = conditional_breakpoint_exception_tuple
2008 int_cmd = InternalGetBreakpointException(thread_id, exc_type, stacktrace)
2009 self.post_internal_command(int_cmd, thread_id)
2010
2011 def send_caught_exception_stack(self, thread, arg, curr_frame_id):
2012 """Sends details on the exception which was caught (and where we stopped) to the java side.

Callers 1

set_suspendMethod · 0.95

Calls 3

post_internal_commandMethod · 0.95
get_thread_idFunction · 0.90

Tested by

no test coverage detected