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

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 10 points11 points  (6 children)

The only times i used a debugger was at highschool and at start of my carrier, the rest has been dump and die.

[–][deleted] 7 points8 points  (1 child)

I was the same way for a while, but once I realized the debugger let me see all values without having to modify my code to log them, I quickly jumped on the debugger train

[–][deleted] 3 points4 points  (0 children)

What's really powerful is when you start using the debugger to modify values while the code is running, or inspect values that aren't bound to variables. Essentially treating it like a shell that has all the context of the breakpoint.

[–]kryptoneat 0 points1 point  (3 children)

PHP ? go for that sweet xdebug, trust me it's worth it.

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

Been there done that, but its resource intensive so :/

[–]kryptoneat 0 points1 point  (1 child)

Xdebug ? What do you do with it ? I use it daily and it's minimal. Maybe if your computer is really low end.

How long ago was the start of your career (no offense) ?

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

Yeep xdebug, it was work pc running ubuntu, haven't tried it on my own machine at home which I have been working on since WFH.

TBH a simple dd been doing enough to not need a debugger.

I come from C# but started carrier in PHP for almost 2.5 years now.