Add debug output to TT scanner