Improving the code of the backhole debug handling