MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / send_json_message

Function send_json_message

pydevd.py:2785–2805  ·  view source on GitHub ↗

API to send some custom json message. :param dict|pydevd_schema.BaseSchema msg: The custom message to be sent. :return bool: True if the message was added to the queue to be sent and False otherwise.

(msg)

Source from the content-addressed store, hash-verified

2783
2784
2785def send_json_message(msg):
2786 """
2787 API to send some custom json message.
2788
2789 :param dict|pydevd_schema.BaseSchema msg:
2790 The custom message to be sent.
2791
2792 :return bool:
2793 True if the message was added to the queue to be sent and False otherwise.
2794 """
2795 py_db = get_global_debugger()
2796 if py_db is None:
2797 return False
2798
2799 writer = py_db.writer
2800 if writer is None:
2801 return False
2802
2803 cmd = NetCommand(-1, 0, msg, is_json=True)
2804 writer.add_command(cmd)
2805 return True
2806
2807
2808def enable_qt_support(qt_support_mode):

Callers

nothing calls this directly

Calls 3

NetCommandClass · 0.90
get_global_debuggerFunction · 0.85
add_commandMethod · 0.45

Tested by

no test coverage detected