Re:Write Better Error Messages
by dylan604 on Wednesday October 19, 2022 @01:53PM
(#33265635)
I used to lean on line numbers, but those quickly fall out of sync with deployed code and what's currently checked out and available for immediate debugging. I've also switched to using unique text you mention as it will always find the place in the code regardless if it has been moved.
I wish I had learned that earlier than I had.