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

Method get_log_contents

tests_python/debugger_unittest.py:652–660  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

650 print("Log on success: " + self.get_log_contents())
651
652 def get_log_contents(self):
653 log_contents = ""
654 if self.pydevd_debug_file:
655 for f in pydev_log.list_log_files(self.pydevd_debug_file):
656 if os.path.exists(f):
657 with open(f, "r") as stream:
658 log_contents += "\n-------------------- %s ------------------\n\n" % (f,)
659 log_contents += stream.read()
660 return log_contents
661
662 def fail_with_message(self, msg, stdout, stderr, writerThread):
663 log_contents = self.get_log_contents()

Callers 2

run_processMethod · 0.95
fail_with_messageMethod · 0.95

Calls 1

readMethod · 0.45

Tested by

no test coverage detected