haive.core.utils.debugkit.debug.inspection¶

Debug Inspection Utilities

Provides utilities for inspecting stack traces, local/global variables, and runtime state.

Classes¶

DebugInspector

Utilities for inspecting runtime state and variables.

Module Contents¶

class haive.core.utils.debugkit.debug.inspection.DebugInspector[source]¶

Utilities for inspecting runtime state and variables.

disable()[source]¶

Disable debug inspection.

Return type:

None

enable()[source]¶

Enable debug inspection.

Return type:

None

frame_info()[source]¶

Get detailed information about the current frame.

Return type:

dict[str, Any]

get_caller_chain(depth=5)[source]¶

Get information about the call chain.

Parameters:

depth (int)

Return type:

list[dict[str, Any]]

globals_inspect()[source]¶

Inspect global variables in the calling frame.

Return type:

dict[str, Any]

locals_inspect()[source]¶

Inspect local variables in the calling frame.

Return type:

dict[str, Any]

stack_trace(limit=None)[source]¶

Get formatted stack trace.

Parameters:

limit (int | None)

Return type:

str