Add more debug output during trace printing