Allows passing a state to the debug statement