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

Method _show_debug_info

_pydevd_bundle/pydevd_net_command.py:131–150  ·  view source on GitHub ↗
(cls, cmd_id, seq, text)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.95

Calls 2

get_protocolFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected