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)
| 2783 | |
| 2784 | |
| 2785 | def 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 | |
| 2808 | def enable_qt_support(qt_support_mode): |
nothing calls this directly
no test coverage detected