Highlight set_trace() like a breakpoint when its status changes

Unfortunately, I'm not sure how to make it highlight initially, because I'm
not sure how to communicate that information from the debugger to the UI.
This commit is contained in:
Aaron Meurer 2013-10-31 16:35:54 -07:00
parent 6bdfc25b07
commit 879886548e

View File

@ -1050,6 +1050,7 @@ class DebuggerUI(FrameVarInfoKeeper):
file_lineno = (bp_source_identifier, lineno)
if file_lineno in self.debugger.set_traces:
self.debugger.set_traces[file_lineno] = not self.debugger.set_traces[file_lineno]
sline.set_breakpoint(self.debugger.set_traces[file_lineno])
return
from pudb.lowlevel import get_breakpoint_invalid_reason