Debug controller