{"modulePath":"github.com/cockroachdb/cockroachdb-parser","version":"v0.25.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debugutil\n\n## Functions\n\n```go\nfunc IsLaunchedByDebugger() bool\n```\nIsLaunchedByDebugger returns true in cases where the delve debugger was used to launch the cockroach process.\n\n## Types\n\n```go\ntype SafeStack []byte\n```\nSafeStack is an alias for \\[]byte that handles redaction. Use this type instead of \\[]byte when you are sure that the stack trace does not contain sensitive information.\n\n```go\nfunc Stack() SafeStack\n```\nStack wraps the output of debug.Stack() with redact.Safe() to avoid unnecessary redaction.\n\nWARNING: Calling this function grabs system-level locks and could cause high system CPU usage resulting in the Go runtime to lock up if called too frequently, even if called only in error-handling pathways. Use sporadically and only when necessary.\n\n```go\nfunc (s SafeStack) SafeValue()\n```\n\n","path":"github.com/cockroachdb/cockroachdb-parser/pkg/util/debugutil","name":"debugutil","synopsis":"","isRedistributable":true}
