(frame_custom_thread_id, frame, thread_id, name=None)
| 90 | |
| 91 | |
| 92 | def 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 | |
| 109 | def remove_custom_frame(frame_custom_thread_id): |
no test coverage detected