MCPcopy Create free account
hub / github.com/dot-agent/nextpy / debug

Function debug

nextpy/utils/console.py:43–55  ·  view source on GitHub ↗

Print a debug message. Args: msg: The debug message. kwargs: Keyword arguments to pass to the print function.

(msg: str, **kwargs)

Source from the content-addressed store, hash-verified

41
42
43def debug(msg: str, **kwargs):
44 """Print a debug message.
45
46 Args:
47 msg: The debug message.
48 kwargs: Keyword arguments to pass to the print function.
49 """
50 if _LOG_LEVEL <= LogLevel.DEBUG:
51 msg_ = f"[blue]Debug: {msg}[/blue]"
52 if progress := kwargs.pop("progress", None):
53 progress.console.print(msg_, **kwargs)
54 else:
55 print(msg_, **kwargs)
56
57
58def info(msg: str, **kwargs):

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected