(cls, cmd_id, seq, text)
| 129 | |
| 130 | @classmethod |
| 131 | def _show_debug_info(cls, cmd_id, seq, text): |
| 132 | with cls._show_debug_info_lock: |
| 133 | # Only one thread each time (rlock). |
| 134 | if cls._showing_debug_info: |
| 135 | # avoid recursing in the same thread (just printing could create |
| 136 | # a new command when redirecting output). |
| 137 | return |
| 138 | |
| 139 | cls._showing_debug_info += 1 |
| 140 | try: |
| 141 | out_message = "sending cmd (%s) --> " % (get_protocol(),) |
| 142 | out_message += "%20s" % ID_TO_MEANING.get(str(cmd_id), "UNKNOWN") |
| 143 | out_message += " " |
| 144 | out_message += text.replace("\n", " ") |
| 145 | try: |
| 146 | pydev_log.critical("%s\n", out_message) |
| 147 | except: |
| 148 | pass |
| 149 | finally: |
| 150 | cls._showing_debug_info -= 1 |
no test coverage detected