Lines Matching refs:debug
28 def debug(msg):
31 def debug(msg):
117 debug("tty.tcgetattr(pty.STDIN_FILENO) failed")
126 debug("Setting pty.STDIN_FILENO window size.")
127 debug(f"original size: (row, col) = {self.stdin_dim}")
129 debug(f"target size: (row, col) = {target_dim}")
142 debug("Calling pty.openpty()")
149 debug(f"Got {master_fd=}, {slave_fd=}, {slave_name=}")
183 debug("Writing to slave_fd")
189 debug("Writing chunked output")
196 debug("calling pty.fork()")
202 debug("Child's fd 1 is not a tty?!")
207 debug("In child, calling os.setsid()")
212 debug("Good: OSError was raised.")
216 debug("No setsid() available?")
223 debug("An unexpected error was raised.")
226 debug("os.setsid() succeeded! (bad!)")
230 debug("Waiting for child (%d) to finish." % pid)
231 # In verbose mode, we have to consume the debug output from the
259 debug("Child (%d) exited with code %d (status %d)." % (pid, res, status))
269 ##debug("Reading from master_fd now that the child has exited")
279 debug("Calling pty.openpty()")
281 debug(f"Got master_fd '{master_fd}', slave_fd '{slave_fd}'")
285 debug("Closing slave_fd")
288 debug("Reading from master_fd")