Improved text debugging