smarter debug line