Debugging - error for functions (check_debug call)