MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / update_custom_frame

Function update_custom_frame

_pydevd_bundle/pydevd_custom_frames.py:92–106  ·  view source on GitHub ↗
(frame_custom_thread_id, frame, thread_id, name=None)

Source from the content-addressed store, hash-verified

90
91
92def update_custom_frame(frame_custom_thread_id, frame, thread_id, name=None):
93 with CustomFramesContainer.custom_frames_lock:
94 if DEBUG:
95 sys.stderr.write("update_custom_frame: %s\n" % frame_custom_thread_id)
96 try:
97 old = CustomFramesContainer.custom_frames[frame_custom_thread_id]
98 if name is not None:
99 old.name = name
100 old.mod_time += 1
101 old.thread_id = thread_id
102 except:
103 sys.stderr.write("Unable to get frame to replace: %s\n" % (frame_custom_thread_id,))
104 pydev_log.exception()
105
106 CustomFramesContainer._py_db_command_thread_event.set()
107
108
109def remove_custom_frame(frame_custom_thread_id):

Callers 2

greenlet_eventsFunction · 0.90
_schedule_callbackFunction · 0.90

Calls 2

exceptionMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected