Fetch the variable description stub from the debug console
(dbg, seq, thread_id, frame_id, expression)
| 1435 | |
| 1436 | |
| 1437 | def internal_get_description(dbg, seq, thread_id, frame_id, expression): |
| 1438 | """Fetch the variable description stub from the debug console""" |
| 1439 | try: |
| 1440 | frame = dbg.find_frame(thread_id, frame_id) |
| 1441 | description = pydevd_console.get_description(frame, thread_id, frame_id, expression) |
| 1442 | description = pydevd_xml.make_valid_xml_value(quote(description, "/>_= \t")) |
| 1443 | description_xml = '<xml><var name="" type="" value="%s"/></xml>' % description |
| 1444 | cmd = dbg.cmd_factory.make_get_description_message(seq, description_xml) |
| 1445 | dbg.writer.add_command(cmd) |
| 1446 | except: |
| 1447 | exc = get_exception_traceback_str() |
| 1448 | cmd = dbg.cmd_factory.make_error_message(seq, "Error in fetching description" + exc) |
| 1449 | dbg.writer.add_command(cmd) |
| 1450 | |
| 1451 | |
| 1452 | def build_exception_info_response(dbg, thread_id, thread, request_seq, set_additional_thread_info, iter_visible_frames_info, max_frames): |
nothing calls this directly
no test coverage detected