MCPcopy
hub / github.com/gogf/gf / IsDebugEnabled

Function IsDebugEnabled

internal/utils/utils_debug.go:33–35  ·  view source on GitHub ↗

IsDebugEnabled checks and returns whether debug mode is enabled. The debug mode is enabled when command argument "gf.debug" or environment "GF_DEBUG" is passed.

()

Source from the content-addressed store, hash-verified

31// IsDebugEnabled checks and returns whether debug mode is enabled.
32// The debug mode is enabled when command argument "gf.debug" or environment "GF_DEBUG" is passed.
33func IsDebugEnabled() bool {
34 return isDebugEnabled
35}
36
37// SetDebugEnabled enables/disables the internal debug info.
38func SetDebugEnabled(enabled bool) {

Callers 7

PrintFunction · 0.92
PrintfFunction · 0.92
ErrorFunction · 0.92
ErrorfFunction · 0.92
PrintFuncFunction · 0.92
ErrorFuncFunction · 0.92
doPrintFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…