frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Debug like a boss: 10 debugging hacks for developers, quality engineers, testers

https://www.ministryoftesting.com/articles/debug-like-a-boss-10-debugging-hacks-for-developers-quality-engineers-and-testers
23•rosiesherry•7h ago

Comments

orionblastar•6h ago
These were the techniques taught to me in college in 1989 when I learned how to debug. We didn't have git back then. Sometimes taking a break helps if you get stressed out and stuck. I worked with a Marine in 1996-1997 at the ATCOM Army base who taught me that going to the snack bar and buying a soda and a bag of chips is the best way to refocus your brain on the problem. Take a walk as well.
Insanity•6h ago
Maybe the “go buy a bag of chips” is a way to force the walk to happen.

I tend to do the same though, walk away for a bit and then return to the problem. Sometimes longer breaks are needed though so I might pivot to a different problem for a while.

fortyseven•6h ago
It's pretty crazy the number of times I've banged my head against the wall trying to fix something... and then I'll either step away for an hour, or just come back the next day, and I'll have it fixed in minutes. It really does work sometimes.
ahmedfromtunis•5h ago
When I was trying to learn to code as a kid, I struggled for days trying to wrap my head around the concept of a variable.

I the concluded that programming isn't for me and left the bloodshed ide untouched.

Two weeks later, I was watching TV. And out of nowhere it just hit me. I finally understood what variables are! I ran to the computer to test my assumption, and it was spot on.

To this day, 20+ years later, I still remember the feeling of everything suddenly falling into place!

johnisgood•5h ago
I agree. The brain works in mysterious ways.

I remember playing a logic game which required lots of thinking to solve it. Then at some point I stopped trying to actively solve it, I just simply stared at the game without trying to solve it, and after a while I tried to solve it. Guess what? I solved it at first attempt, without knowing how! This was really curious and it made me excited so I tried to keep doing it this way and turns out it was not a fluke, this method seemed to work consistently.

I did some research on it and this phenomenon is called "incubation" which is a core concept in the psychology of creativity and problem solving. Apparently it's frequently observed in puzzles, mathematical problems, and design tasks that require restructuring rather than mere computation.

In your case, conscious and effortful thinking can lead to functional fixedness or mental set, where you become stuck on an unproductive strategy, so taking a break allows these rigid patterns to weaken, making space for more flexible or creative approaches.

shagie•5h ago
(for those interested in reading more about this...)

https://en.wikipedia.org/wiki/Incubation_(psychology)

    In psychology, incubation refers to the unconscious processing of problems, when they are set aside for a period of time, that may lead to insights. It was originally proposed by Graham Wallas in 1926 as one of his four stages of the creative process: preparation, incubation, illumination, and verification. Incubation is related to intuition and insight in that it is the unconscious part of a process whereby an intuition may become validated as an insight. Incubation substantially increases the odds of solving a problem, and benefits from long incubation periods with low cognitive workloads.
vjvjvjvjghv•5h ago
But you can't just step away. A certain amount of headbanging (and desperation or anger) is needed to trigger your brain background processing.
stronglikedan•4h ago
In my day, when you encountered a tough problem, you'd go outside and have a cigarette, and the solution would magically come to you. Thank God I quit that poison, and have since learned that a brisk walk can accomplish the same goal. But back then it was a joke amongst peers - cigarettes will solve your problems!
qingcharles•4h ago
I was lead dev once and the unofficial "rubber duck." I'd always get called over when someone was stuck on a thorny problem, lean over their shoulder and ask them to explain it and it was always instantly "Oh! I see it now, thank you!" and I had done nothing.

https://en.wikipedia.org/wiki/Rubber_duck_debugging

yakshaving_jgt•6h ago
Is it just me or is this yet more ChatGPT output?
threeducks•5h ago
Yea, it's full of AI slop like "It's not X, it's Y!":

> Half the bugs you chase aren’t in your code. They’re in your head.

> You’re not asking for their input, necessarily. You’re asking to have someone listen to you so you can think straight.

> The truth is in the path, not the punchline.

> The log is not your diary. It’s your surveillance system.

> Debugging isn’t just thinking. It’s re-thinking

> These 10 tips aren’t a checklist: they are a starter kit.

> Logs are your sidekick, not your saviour.

porridgeraisin•5h ago
Yeah I thought it was maaaybe human but this line made me think it's AI:

> Short sentence 1. Short sentence 2. That’s debugging like a boss.

No human writes like that. I suppose the average of all humans does, though :-)

dloranc•3h ago
It's like typical LinkedIn post made by tech evangelist.
troebr•6h ago
None of these debugging tips involve the use of a debugger, arguably one of the most efficient ways to debug.
devnull3•5h ago
In most production cases, there is no luxury of debugger.

In my current $job, all we get is logs from 70+ node cluster and that too in a shared-nothing architecture. You have to stitch together varied datapoints (job logs on multiple nodes, netstat o/p, job logs of other services, http access logs, tcpdump, etc) to even prove that problem is on the customer side and not ours.

miohtama•5h ago
The article has slop slurping all over from it
inglor_cz•5h ago
The article is a bit of a "dog bites man", but itsobservations are valid. False assumptions are what caused > 50 per cent of my bugs, and for bugs in production, reasonable logging is what you need. The point with going away from the computer and letting your brain process things is good too, and the point about postmortem is spot on. I hate it when my colleagues say "fixed" without explaining how the error emerged in the first place, and they mostly already learnt to supply context to correction of non-trivial bugs. (I try to lead by example and send detailed e-mails after major fixes.)
cvoss•4h ago
Sure, nothing in the article is wrong. But if someone has to be told most of these things, and they already are a professional developer? What were they doing when they were supposed to be learning their profession?
kazinator•4h ago
I feel they might have replaced an AI-generated em-dash here: "Set up a short chat or team session to share your debugging tricks - what’s working, what’s not, where time gets lost."
cube00•5h ago
"But I can just add print statements" is the bane of my existence.

If they really insist then I encourage them add trace logging instead so at least it's not wasted effort.

codegladiator•5h ago
Logging is a hack now ?
jasonthorsness•5h ago
When I started programming debuggers were very good. Windbg for example was incredibly powerful, you could debug the Windows kernel, boot process, run scripts, author plugins, anything.

And yet here decades later this list about debugging doesn't even mention a debugger, and in many environments they are worse and harder to use than what we had before. I'm so disappointed!

kazinator•4h ago
> Debug like a boss

Okay.

"Bob, do you have cycles to take on this ticket? Customer says that the application is unresponsive."

Ask HN: What's the best way to build agents in Oct 2025

1•th3o6a1d•1m ago•0 comments

Tell HN: iPadOS 26 bricked my iPad Pro

1•designerbenny•2m ago•0 comments

OpenAI Made a $12B Loss Last Quarter, Microsoft Results Indicate

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-10-31-2025/card/openai-made...
1•frereubu•4m ago•0 comments

The Abode of Salvation

https://rohanparanjpe.substack.com/p/the-abode-of-salvation
1•weinzierl•5m ago•0 comments

MVP: Mobile app to learn languages through listening (feedback welcome)

https://praatmvp.figma.site/
1•BASSAMej•6m ago•1 comments

And He Knows Not What It Means

https://freddiedeboer.substack.com/p/and-he-knows-not-what-it-means
1•paulpauper•7m ago•0 comments

Solo Founder Can Predict the Future

https://solofounders.com/blog/this-solo-founder-can-predict-the-future
1•dutilh•8m ago•0 comments

Antimicrobial and Biofilm Inhibiting Potential of Two Romanian Linden Honeys

https://www.mdpi.com/2304-8158/14/21/3594
2•PaulHoule•8m ago•0 comments

Libcpu: A library to emulate several CPU architectures using LLVM

https://github.com/libcpu/libcpu
3•fanf2•9m ago•0 comments

Tim Bray on Grokipedia

https://www.tbray.org/ongoing/When/202x/2025/10/28/Grokipedia
3•Bogdanp•10m ago•0 comments

A Letter from Leonard Tramiel

https://www.facebook.com/story.php?story_fbid=122143500512931299&id=61577938971505&post_id=615779...
1•harel•12m ago•0 comments

Interview with Ken Silverman, 17-Year-Old Creator of the Build Engine

https://www.youtube.com/watch?v=WruzfQLxpQY
1•birdculture•13m ago•0 comments

Show HN: Showcase – Real-time collaborative AI chat with 180 models

https://showcase.thytus.com/v1/guides
1•martinoV•13m ago•0 comments

BMW, Samsung SDI, and Solid Power join forces for all-solid-state EV batteries

https://electrek.co/2025/10/31/bmw-samsung-sdi-join-forces-all-solid-state-ev-batteries/
1•breve•14m ago•0 comments

601: Game Theory

https://www.explainxkcd.com/wiki/index.php/601:_Game_Theory
1•jonbaer•16m ago•0 comments

Forging Our Future: OSL's Path to Sustainability

https://osuosl.org/blog/osl-future-update/
1•mulderc•16m ago•0 comments

The only people who feel good are making over $200k and have large portfolios

https://fortune.com/2025/10/24/why-is-economy-so-bad-recession-not-inflation-fed-rate-cuts-2025/
4•dataflow•19m ago•0 comments

Rigol Digital Oscilloscope MHO98

https://rigolshop.eu/mho98.html
2•walterbell•25m ago•0 comments

Show HN: AI that builds travel itineraries from booking confirmations

https://www.mtrip.com/
1•mtrip-guide•26m ago•0 comments

Portfolio Size Affects Early-Stage Venture Returns

https://www.angellist.com/blog/how-portfolio-size-affects-early-stage-venture-returns
1•simonebrunozzi•27m ago•0 comments

3D print Death Run 3D

https://slopeonline.online/death-run-3d
1•davidcolston•27m ago•0 comments

The Marketplace for Vaccine Medical Exemptions

https://undark.org/2025/10/31/frontline-vaccine-exemptions/
2•EA-3167•29m ago•0 comments

1K Users – Let Community Vote on Next App

3•NAKSTStudio•30m ago•0 comments

French lawmakers vote against wealth tax on super-rich

https://www.lemonde.fr/en/france/article/2025/10/31/french-lawmakers-vote-against-wealth-tax-on-s...
2•geox•31m ago•0 comments

Judge orders administration to distribute SNAP contingency money amid shutdown

https://abcnews.go.com/US/judge-rules-trumps-attempt-suspend-snap-funding-unlawful/story?id=12706...
5•jrflowers•32m ago•0 comments

Bluesky reaches 40M users milestone

https://bsky.app/profile/bsky.app/post/3m4j4iy4oek2d
4•vital•32m ago•1 comments

Making Every 5x5 Nonogram: Part 1

https://www.patreon.com/posts/making-every-5x5-142537007
2•okayestjoel•35m ago•1 comments

Show HN: RepoPulse – AI-powered GitHub analytics dashboard

https://repopulse.live
1•sdfswerew•36m ago•0 comments

I made a WeTransfer clone with Darth Vader vibes

https://DropVader.com
2•hitsnoozer•37m ago•0 comments

A Survey of Internet Censorship and Its Measurement

https://www.sciencedirect.com/science/article/pii/S0167404825004213
1•8organicbits•49m ago•0 comments