MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / debug_print

Method debug_print

tools/python-3.11.9-amd64/Lib/distutils/cmd.py:184–191  ·  view source on GitHub ↗

Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true.

(self, msg)

Source from the content-addressed store, hash-verified

182 log.log(level, msg)
183
184 def debug_print(self, msg):
185 """Print 'msg' to stdout if the global DEBUG (taken from the
186 DISTUTILS_DEBUG environment variable) flag is true.
187 """
188 from distutils.debug import DEBUG
189 if DEBUG:
190 print(msg)
191 sys.stdout.flush()
192
193
194 # -- Option validation methods -------------------------------------

Callers 4

__init__Method · 0.45
find_package_modulesMethod · 0.45
create_home_pathMethod · 0.45
test_debug_printMethod · 0.45

Calls 2

printFunction · 0.50
flushMethod · 0.45

Tested by 1

test_debug_printMethod · 0.36