MCPcopy
hub / github.com/gin-gonic/gin / IsDebugging

Function IsDebugging

debug.go:22–24  ·  view source on GitHub ↗

IsDebugging returns true if the framework is running in debug mode. Use SetMode(gin.ReleaseMode) to disable debug mode.

()

Source from the content-addressed store, hash-verified

20// IsDebugging returns true if the framework is running in debug mode.
21// Use SetMode(gin.ReleaseMode) to disable debug mode.
22func IsDebugging() bool {
23 return atomic.LoadInt32(&ginMode) == debugCode
24}
25
26// DebugPrintRouteFunc indicates debug log output format.
27var DebugPrintRouteFunc func(httpMethod, absolutePath, handlerName string, nuHandlers int)

Callers 9

CustomRecoveryWithWriterFunction · 0.85
debugPrintRouteFunction · 0.85
debugPrintLoadTemplateFunction · 0.85
debugPrintFunction · 0.85
debugPrintErrorFunction · 0.85
LoadHTMLGlobMethod · 0.85
LoadHTMLFilesMethod · 0.85
LoadHTMLFSMethod · 0.85
TestIsDebuggingFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsDebuggingFunction · 0.68