Laughed so much this morning in the office at our debugging methodology. Anyone else work like this?
Finding a coding error...
You've made a change to one of your files, press refresh in the browser and the dreaded WSOD appears.
Yikes! What caused that?
1. Stare at the section you've just changed.
2. Write exit('hallo'); after each if () { declaration.
3. Refresh page in browser... cool, the WSOD has been replaced by 'hallo'. But which one?
4. Go back to code and replace exit('hallo') with exit('hallo 1'), exit('hallo 2'), exit('hallo 3'), etc
5. YES! it's line #45. Debug finished, job done.
Working with Drupal's (or other CMS) admin... (also known as click-click-guess)
We recently had a problem with views and taxonomy related content and couldn't get a field to display...
1. Type problem into google "drupal views display field related taxonomy problem".
2. Scan results and click on anything from stackoverflow or drupal.org.
3. Very briefly scan question and the accepted answer, remember a few suggested config changes.
4. Back to Drupal and fiddle around with those config options in the views admin.
Hasn't worked? Back to the search results and repeat... Remember there's no point in reading the full replies as nobody else's problem will be exactly like yours - all you need is a pointer in the right direction!
I can't tell you how many times my colleague and I have worked like this and we have nearly 20 years experience in PHP between us - lol!
We do have other debugging tools at our disposal, such as tailing the error log, or turning on errors by appending a URL parameter, but most of the time we just hack away ;)