MCPcopy Index your code
hub / github.com/pterm/pterm / WithDebugger

Method WithDebugger

prefix_printer.go:136–139  ·  view source on GitHub ↗

WithDebugger returns a new Printer with specific Debugger value. If Debugger is true, the printer will only print if PrintDebugMessages is set to true. You can change PrintDebugMessages with EnableDebugMessages and DisableDebugMessages, or by setting the variable itself.

(b ...bool)

Source from the content-addressed store, hash-verified

134// If Debugger is true, the printer will only print if PrintDebugMessages is set to true.
135// You can change PrintDebugMessages with EnableDebugMessages and DisableDebugMessages, or by setting the variable itself.
136func (p PrefixPrinter) WithDebugger(b ...bool) *PrefixPrinter {
137 p.Debugger = internal.WithBoolean(b)
138 return &p
139}
140
141// WithLineNumberOffset can be used to exclude a specific amount of calls in the call stack.
142// If you make a wrapper function for example, you can set this to one.

Calls 1

WithBooleanFunction · 0.92