knit_script.debugger.debug_decorator module
Module containing decorator functions for Knit Script Debugger
- debug_knitscript_statement(execution_method)[source]
Decorates execution methods of knit script statements so that the knit script debugger can act using the standard Python Debugger.
- Parameters:
execution_method (Callable[[Statement, Knit_Script_Context], Any]) – The statement’s execution method to be debugged.
- Returns:
The statement’s execution method, wrapped with code to activate the Knit scrip debugger attached to the given context.
- Return type:
Callable[[Statement, Knit_Script_Context], Any]