Converts request into python variable
(dbg, seq, thread_id, frame_id)
| 961 | |
| 962 | @silence_warnings_decorator |
| 963 | def internal_get_frame(dbg, seq, thread_id, frame_id): |
| 964 | """Converts request into python variable""" |
| 965 | try: |
| 966 | frame = dbg.find_frame(thread_id, frame_id) |
| 967 | if frame is not None: |
| 968 | hidden_ns = pydevconsole.get_ipython_hidden_vars() |
| 969 | xml = "<xml>" |
| 970 | xml += pydevd_xml.frame_vars_to_xml(frame.f_locals, hidden_ns) |
| 971 | del frame |
| 972 | xml += "</xml>" |
| 973 | cmd = dbg.cmd_factory.make_get_frame_message(seq, xml) |
| 974 | dbg.writer.add_command(cmd) |
| 975 | else: |
| 976 | # pydevd_vars.dump_frames(thread_id) |
| 977 | # don't print this error: frame not found: means that the client is not synchronized (but that's ok) |
| 978 | cmd = dbg.cmd_factory.make_error_message(seq, "Frame not found: %s from thread: %s" % (frame_id, thread_id)) |
| 979 | dbg.writer.add_command(cmd) |
| 980 | except: |
| 981 | cmd = dbg.cmd_factory.make_error_message(seq, "Error resolving frame: %s from thread: %s" % (frame_id, thread_id)) |
| 982 | dbg.writer.add_command(cmd) |
| 983 | |
| 984 | |
| 985 | def internal_get_smart_step_into_variants(dbg, seq, thread_id, frame_id, start_line, end_line, set_additional_thread_info): |
nothing calls this directly
no test coverage detected