knitout_interpreter.debugger.debug_decorator module

Module containing the debug_knitout decorator and associated typing verification.

debug_knitout_instruction(execution_method)[source]

Decorates a method of the Knitout_Executer class that executes lines of knitout code so that the lines can be debugged in the standard Python Debugger.

Parameters:

execution_method (Callable[[Knitout_Executer, Knitout_Instruction | Knitout_Comment_Line], None]) – The Knitout_Executer method that executes a knitout instruction which may be debugged.

Returns:

The execution method, wrapped with code to activate the Knitout_Debugger associated with the Knitout_Executer

Return type:

Callable[[Knitout_Executer, Knitout_Instruction | Knitout_Comment_Line], None]