haive.core.utils.debugkit.debuggingΒΆ
Enhanced Debugging Utilities
A unified interface for all debugging capabilities including enhanced print debugging, interactive debugging, decorators, and inspection utilities.
Examples
- Enhanced debugging (icecream replacement):
>>> from haive.core.utils.dev.debugging import debug >>> debug.ice("Hello", variable=42)
- Interactive debugging:
>>> debug.pdb() # Enhanced pdb >>> debug.web(port=8080) # Web-based debugging >>> debug.visual() # Visual debugging with pudb
- Automatic exception debugging:
>>> @debug.breakpoint_on_exception ... def risky_function(): ... # Will auto-debug on exceptions ... pass
- Call tracing:
>>> @debug.trace_calls ... def tracked_function(): ... # Will show call trace ... pass
- Variable inspection:
>>> debug.locals_inspect() # See local variables >>> debug.stack_trace() # See call stack
ClassesΒΆ
Unified interface for all debugging utilities. |
Module ContentsΒΆ
- class haive.core.utils.debugkit.debugging.DebugUtilities[source]ΒΆ
Unified interface for all debugging utilities.
- breakpoint_on_exception(func)[source]ΒΆ
Decorator to automatically break into debugger on exceptions.
- pdb(condition=True)[source]ΒΆ
Start interactive debugging session.
- Parameters:
condition (bool)
- Return type:
None