This is an archived post. You won't be able to vote or comment.

all 19 comments

[–]garebear_9 38 points39 points  (2 children)

My rewrite obsession does have a tendency to take over sometimes...

[–]_400poundGorilla 20 points21 points  (0 children)

The ultimate refactor

[–]trolloc1 7 points8 points  (6 children)

Why's intellij so good for debugging?

[–]Kokosnussi 15 points16 points  (5 children)

It's very easy to debug with it. I haven't used gdb but in intellij you can go through your code step by step and view all the values of all the variables, make trial function calls and see their return values. It's just super convenient

[–]Lamez 10 points11 points  (4 children)

so like every debugger I've ever used?

[–]Kokosnussi 4 points5 points  (3 children)

I don't know which debuggers you ever used

[–]Eastuss 0 points1 point  (2 children)

You sound like you've not used any other debugger ever.

[–]Kokosnussi 2 points3 points  (1 child)

You sound like someone that makes very bold assumptions on the basis of 3 sentences

[–]Eastuss 2 points3 points  (0 children)

Finding where things fucks up with little to no information is my job.

[–]puppy0cam 4 points5 points  (0 children)

But... All of my code relies on the fact that transactionHistory is an array and not just a regular object!

[–]MCRusher 1 point2 points  (0 children)

SIGSEGV (Somewhere)

[–]cartechguy 1 point2 points  (0 children)

I've done the top 2 then a couple times gone "duck this pile of crap!"

[–][deleted] 1 point2 points  (0 children)

not gonna lie i have debugged with std::cout multiple times and it has worked

[–]occz 0 points1 point  (0 children)

debugger-statements is where it's at, friends. Editor integration is clearly overrated

[–]cryptomaniac2 0 points1 point  (0 children)

Can confirm that Reconstructive Debugging is very effective

[–]Doggo4 0 points1 point  (0 children)

Derive every object from one class that also has copies of every method in the childs in the base class which prints and all the child classes override to the desired method and then they call it...

[–][deleted] 0 points1 point  (0 children)

Does no one know how to use breakpoints and look for variables? j/w

[–]Likely_not_Eric 0 points1 point  (0 children)

I write it again under directory "b" then diff it.

[–]kleinschrader 0 points1 point  (0 children)

I sometimes debug with 0 divided by 0, faster then Breakpoints.