debug for fatal error