MCPcopy Create free account
hub / github.com/RUB-NDS/PRET / do_debug

Method do_debug

printer.py:160–168  ·  view source on GitHub ↗

Enter debug mode. Use 'hex' for hexdump: debug [hex]

(self, arg)

Source from the content-addressed store, hash-verified

158
159 # ------------------------[ debug ]-----------------------------------
160 def do_debug(self, arg):
161 "Enter debug mode. Use 'hex' for hexdump: debug [hex]"
162 self.debug = not self.debug
163 # set hex mode (= ascii + hexdump)
164 if arg == "hex":
165 self.debug = "hex"
166 if self.conn:
167 self.conn.debug = self.debug
168 print(("Debug mode on" if self.debug else "Debug mode off"))
169
170 # ====================================================================
171

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected