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

Function internal_get_description

_pydevd_bundle/pydevd_comm.py:1437–1449  ·  view source on GitHub ↗

Fetch the variable description stub from the debug console

(dbg, seq, thread_id, frame_id, expression)

Source from the content-addressed store, hash-verified

1435
1436
1437def 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
1452def build_exception_info_response(dbg, thread_id, thread, request_seq, set_additional_thread_info, iter_visible_frames_info, max_frames):

Callers

nothing calls this directly

Calls 5

make_error_messageMethod · 0.80
find_frameMethod · 0.45
add_commandMethod · 0.45

Tested by

no test coverage detected