Any solution to relate the code to the line number?

Thanks.
If I have many Serial.println(), it's easy to have line nubmer there.
I've used Serial.println("test print 0001"); way, still need search if the sketch is large.