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