debugutil

package
v0.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLaunchedByDebugger

func IsLaunchedByDebugger() bool

IsLaunchedByDebugger returns true in cases where the delve debugger was used to launch the cockroach process.

Types

type SafeStack

type SafeStack []byte

SafeStack 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.

func Stack

func Stack() SafeStack

Stack wraps the output of debug.Stack() with redact.Safe() to avoid unnecessary redaction.

WARNING: 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.

func (SafeStack) SafeValue

func (s SafeStack) SafeValue()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL