Chris Hartjes wrote:

> Step #1:  make sure you have your app in SQL debugging mode by making
> sure DEBUG is set to 2 in your core.php config file.
> Step #2: Look at the SQL output it generates and make sure the queries
> are actually pulling the information you are expecting
> Step #3: add a 'debug($data);' statment somewhere in your controller
> so you can actually see how the data array is structured.
>
> I know it looks like I'm picking on Mr. Dustin here, but this is
> *basic* debugging technique.  You can't even begin to build anything
> bigger than "Hello world" if you don't learn how to debug your code
> effectively.  I don't mind helping people out, but it gets harder and
> harder to supress my inner cranky developer when basic debugging rules
> aren't being followed.
>
> Perhaps there should be a chapter in the manual (or someplace else) on
> how to effectively debug CakePHP applications.
>
> I have donned my flame-proof suit and await your responses. ;)
>
> --
> Chris Hartjes
>
> "The greatest inefficiencies come from solving problems you will never have."
> -- Rasmus Lerdorf
>
> @TheBallpark - http://www.littlehart.net/attheballpark
> @TheKeyboard - http://www.littlehart.net/atthekeyboard

Chris,
Thank you for such a great welcome to this group. While I do not agree
with your tone or your statement that I don't know how to follow basic
rules, I will respond with:

#1 -  I have built applications and I know how to debug code, but I am
new to frameworks.

#2 - I spent a significant amount of time trying to figure out how to
turn on the debugging in CakePHP because I saw an obscure reference to
it somewhere in this group, but I could never find anything concrete.
(thank you for providing that)

#3 - I have spent a significant amount of time searching this group,
the manual, the api, and everywhere else I can find for the answers
before posting here and taking up everyone's time.  It was only after
finally recognizing that without the abillity to debug I would have to
put my question out here at the mercy of those who would laugh at me
for such a simple question, that I finally posted.

I back you 100% that there should be something about how to set up
debugging for CakePHP in the manual.  At least now it is here - so
hopefully some other hapless newbie can also find the answer.

I hope that you can teach your inner cranky developer the joy of
helping people even if it is something so obvious as this was (they
appreciate the help).  The next time you feel the urge to berate
someone, take a deep breath and then answer their question without
making them feel subhuman.  
thank you again for your help.
Rnady


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to