Re:The Timeless 9 Golden Rules of Debugging
by qwertox on Monday January 13, 2025 @07:57AM
(#42682920)
Make sure you're editing the correct file on the correct machine.
[ Parent
| on HN ]
Re:The Timeless 9 Golden Rules of Debugging
by spacebanana7 on Monday January 13, 2025 @08:11AM
(#42683055)
Also that it's in the correct folder
Re:The Timeless 9 Golden Rules of Debugging
by chupasaurus on Monday January 13, 2025 @08:03AM
(#42682975)
Poor Yorick!
Re:The Timeless 9 Golden Rules of Debugging
by eddd-ddde on Monday January 13, 2025 @08:28AM
(#42683194)
How much time I've wasted unknowingly editing generated files, out of version files, forgetting to save, ... only god knows.
Re:The Timeless 9 Golden Rules of Debugging
by ZedZark on Monday January 13, 2025 @08:30AM
(#42683212)
Yep, this is a variation of "check the plug"
I find myself doing this all the time now I will temporarily add a line to cause a fatal error, to check that it's the right file (and, depending on the situation, also the right line)
Re:The Timeless 9 Golden Rules of Debugging
by overhead4075 on Monday January 13, 2025 @10:46AM
(#42684702)
This is also covered by "make it fail"
Re:The Timeless 9 Golden Rules of Debugging
by shmoogy on Monday January 13, 2025 @09:24AM
(#42683693)
I'm glad I'm not the only one doing this after I wasted too much time trying to figure out why my docker build was not reflecting the changes ... never again..
That's why you make it break differently first. To see your changes have any effect.
Re:The Timeless 9 Golden Rules of Debugging
by snowfarthing on Monday January 13, 2025 @03:37PM
(#42688841)
When working on a test that has several asserts, I have adopted the process of adding one final assert, "assert 'TEST DEBUGGED' is False", so that even when I succeed, the test fails -- and I could review to consider if any other tests should be added or adjusted.
Once I'm satisfied with the test, I remove the line.
Re:The Timeless 9 Golden Rules of Debugging
by reverendsteveii on Monday January 13, 2025 @10:00AM
(#42684090)
very first order of business: git stash && git checkout main && git pull
Re:The Timeless 9 Golden Rules of Debugging
by n144q on Monday January 13, 2025 @11:42AM
(#42685386)
...and you are building and running the correct clone of a repository