Add debug routine for jobid, job array id and job state.