Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
taylan3848yBinary Search Debug (BSD):
1. Remove half of the code
2. If it doesn't work, go to step 1. If it works, apply BSD to the code you just removed
3. Profit -
@binaryfreedom that's a great solution IF you have access to it.
Sometimes clients will only give you FTP access to the sites home folder. -
@nerd-san true. The best approach otherwise is to use ini_set to override the runtime configuration temporarily.
-
dioma48yYou can also download everything and run it on local server with all error reporting on or that ini set but it's less secure
-
@binaryfreedom
however,
ini_set can be disabled for 'security' reasons, or the site is live and you can't be showing errors, or, the previous codders code was so not best practices you would be flooded with so many unrelated or depricated warning errors that it breaks the page.
There are occasions where showing the errors for the page just isn't possible, or would make things worse. -
@nerd-san you are absolutely right. There are cases where none of the above works. Look, I am not trying to belittle your achievement, I was just trying to point what I may have tried. Debugging without error reporting sucks and I believe that's a statement we can all agree. Peace!
-
@binaryfreedom
no offence taken and hopefully none given.
it's not always simple to convey intention.
I wasn't trying to come off as defensive, so sorry for that, and offering advice is always an awesome thing to do, so thanks for that, please don't stop because of me.
the original feeling I was trying to convey wasn't a, 'oh no help,' but more of a, 'working without a net confidence. ' That being said, all the suggestions people have made to work around this problem has been great, and I would be remiss if I didn't acknowledge that I will definitely benefit from some of them.
my bad forgetting that devs will always try to come up with solutions and are supper willing to help each other.
Related Rants
-
Korvax31Italian chef: We have the best spaghetti in the world PHP developer: I doubt that
-
Dacexi24When there are only 2 pages on Google you know you're in serious shit.
-
practiseSafeHex20Fixing a parents iPhone, episode 1. Problem: "Whatsapp is gone off my phone" Debugging: Me: *unlocks phone...
debugging php code without turning on error reporting.
undefined
php
debugging