Saturday, May 1, 2010

Re: DebugKit

have you got debug set to 2, thats when cake outputs sql

and log file output in the log tab 

see whats in prev-requests too

it helps keep external protein in place (less nail biting moments and far fewer hail pulling moments also)


not to mention Matt Curry's interactive - so you can interactively test your models within a tab of debugkit (has a shell also)

- S


On 1 May 2010 06:23, Jeremy Burns <jeremyburns@me.com> wrote:
I echo the appreciation. To be able to render a page without any die/debug statements and then view the variables, see what's in the session, look at the request and observe how long things took is magnificent. I never see anything in the SQL  tab though - not sure if it's just me?

I'd recommend this plug in to developers. It'll save you some hair.


Jeremy Burns

On 30 Apr 2010, at 22:29, Ed Propsner wrote:

@Mark, 

With the entire layout defined by CSS and divs I run into the situation every once in a great while where one container paints over another even with no positioning involved or higher/lower z-indexes. I think it happens mostly because of how data is stacked inside of a particular stacking context. Strange I know, but I seem to be a magnet for that type of thing 8-). Anywho, the persistent problem with Chrome ended up being a caching issue. Other than that I'm loving debugKit kit, I could kick myself in the @ss for being lazy about it in the past 8-).

Outstanding job, 

- Ed 


On Fri, Apr 30, 2010 at 12:47 PM, Jeremy Burns <jeremyburns@me.com> wrote:
Thanks Mark - that worked. I created a folder called debug_kit in /app/webroot, and copied the folders that were inside debug_kit/webroot (css, img & js) into it, and it all started to work.

Jeremy Burns
jeremyburns@me.com


On 30 Apr 2010, at 17:38, mark_story wrote:

> Fatal errors usually happen when there is a version mismatch.  As for
> missing CSS, plugin assets require mod_rewrite/ some sort of url
> rewriting.  I don't think they work without that.  Alternatively you
> could copy the webroot directory inside the plugin into app/webroot/
> debug_kit/ and things should start working.
>
> Ed: Debugkit should stack itself to the top as its at the end of the
> page, and has a pretty high z-index.  I've never really run into
> issues with it stacking under things, but I try to avoid playing with
> z-index in my designs.  If you figure something out that can be fixed
> in debug kit, please open a ticket so I can get it fixed.
>
> -Mark
>
> On Apr 30, 7:52 am, Ed Propsner <crotchf...@gmail.com> wrote:
>> Sure, call me out,  LOL. Initially AD7six was correct and since upgrading to
>> Cake 1.3 I was still trying to run the 1.2 branch/version of debugkit and
>> that was obviously a problem. I downloaded the master branch and was on the
>> right track but there was a bit of mix up (oops) and I ended up dropping the
>> older version right back into the app ... nice. That obviously didn't work
>> either :)
>>
>> Anyhow ... cake 1.3 + debugkit master branch = no issues
>>
>> The real lesson here: Keep your dirs in order and their content's properly
>> labeled.
>>
>> If I keep going at this rate I'll end up as the designated poster child for
>> what not to do :)
>>
>> *On a side note: *
>> My entire layout is defined by CSS and divs. I had to tweak the stack order
>> on both my app and debugkit to keep containers from overlapping. Chrome
>> still has a few issues with the overlay but I can deal with it.
>>
>> Stay tuned for my next brain fart.
>>
>> - Ed
>>
>>
>>
>> On Fri, Apr 30, 2010 at 7:27 AM, Andrei Mita <andrei.m...@gmail.com> wrote:
>>> Maybe it would be useful for others to know were was your mistake :)
>>
>>> On Fri, Apr 30, 2010 at 1:49 PM, Ed Propsner <crotchf...@gmail.com> wrote:
>>
>>>> Holy $%&! ... I got it to work the way it's supposed to.
>>
>>>> I'm pretty sure I know where I went wrong but I'll spare you the details
>>>> for now ... I've almost reached my quota of idiocy for today :)
>>
>>>> @Jeremy:  you're right ... simply drop it into plugins and you're off and
>>>> running.
>>
>>>> WAY better than it was before.
>>
>>>> - Ed
>>
>>>> On Fri, Apr 30, 2010 at 6:18 AM, Ed Propsner <crotchf...@gmail.com>wrote:
>>
>>>>> I could screw up a wet dream.
>>
>>>>> htdocs/cake/plugins <--- works
>>
>>>>> htdocs/mysite/plugins <---- works
>>
>>>>> htdocs/cake/app/plugins <--- don't work
>>
>>>>> I'm starting to confuse myself :)
>>
>>>>> On Fri, Apr 30, 2010 at 6:11 AM, Andrei Mita <andrei.m...@gmail.com>wrote:
>>
>>>>>> It has to be in /app/plugins
>>
>>>>>> On Fri, Apr 30, 2010 at 1:10 PM, Jeremy Burns <jeremybu...@me.com>wrote:
>>
>>>>>>> Not sure - I've got it in /app/plugins.
>>
>>>>>>> Jeremy Burns
>>>>>>> jeremybu...@me.com <jeremybu...@mac.com>
>>
>>>>>>> On 30 Apr 2010, at 11:08, Ed Propsner wrote:
>>
>>>>>>> K, here is a really dumb question for ya' ... does it matter where I
>>>>>>> put it, and by that I mean ...
>>
>>>>>>> htdocs/cake/plugins
>>
>>>>>>> OR
>>
>>>>>>> htdocs/mysite/plugins
>>
>>>>>>> On Fri, Apr 30, 2010 at 5:55 AM, Ed Propsner <crotchf...@gmail.com>wrote:
>>
>>>>>>>> hmmm ....
>>
>>>>>>>> On Fri, Apr 30, 2010 at 5:53 AM, Jeremy Burns <jeremybu...@me.com>wrote:
>>
>>>>>>>>> Nope - just followed the simple instructions - nothing non standard.
>>
>>>>>>>>> Jeremy Burns
>>>>>>>>>  jeremybu...@me.com <jeremybu...@mac.com>
>>
>>>>>>>>> On 30 Apr 2010, at 10:51, Ed Propsner wrote:
>>
>>>>>>>>> @Jeremy
>>
>>>>>>>>> Did you have to manually load the CSS?
>>
>>>>>>>>> $html->css(array('style', 'addstyle', 'debug_toolbar'));
>>
>>>>>>>>> On Fri, Apr 30, 2010 at 5:46 AM, Ed Propsner <crotchf...@gmail.com>wrote:
>>
>>>>>>>>>> I had no clue it was supposed to dock itself all nice and neat like
>>>>>>>>>> that .... you would think "toolbar" would have been a giveaway :) I'm going
>>>>>>>>>> to scrap it and start again.
>>
>>>>>>>>>> On Fri, Apr 30, 2010 at 5:44 AM, Jeremy Burns <jeremybu...@me.com>wrote:
>>
>>>>>>>>>>> It works locally on FF, Safari and Chrome. Remote - no CSS and I
>>>>>>>>>>> get what you're getting.
>>
>>>>>>>>>>> Jeremy Burns
>>>>>>>>>>>  jeremybu...@me.com <jeremybu...@mac.com>
>>
>>>>>>>>>>> On 30 Apr 2010, at 10:41, Ed Propsner wrote:
>>
>>>>>>>>>>> wtf? I'm on a mission now ... Is that browser specific (FF
>>>>>>>>>>> presumably)? I must have an underlying problem somewhere still because I'm
>>>>>>>>>>> getting a 'break on' error in FF.
>>
>>>>>>>>>>> On Fri, Apr 30, 2010 at 5:37 AM, Jeremy Burns <jeremybu...@me.com>wrote:
>>
>>>>>>>>>>>> Not sure if this will post OK...
>>
>>>>>>>>>>>> <Screen shot 2010-04-30 at 10.36.42.png>
>>
>>>>>>>>>>>> Jeremy Burns
>>>>>>>>>>>>  jeremybu...@me.com <jeremybu...@mac.com>
>>
>>>>>>>>>>>> On 30 Apr 2010, at 10:35, Ed Propsner wrote:
>>
>>>>>>>>>>>> You don't say ?? That would be just swell and I'm not getting
>>>>>>>>>>>> that.
>>
>>>>>>>>>>>> On Fri, Apr 30, 2010 at 5:32 AM, Jeremy Burns <jeremybu...@me.com
>>>>>>>>>>>>> wrote:
>>
>>>>>>>>>>>>> If it installs correctly it minimises to an icon in the upper
>>>>>>>>>>>>> right hand corner of the page. Clicking on it zooms it out and gives drop
>>>>>>>>>>>>> downs. When the CSS doesn't work, you get the long list at the foot of the
>>>>>>>>>>>>> page.
>>
>>>>>>>>>>>>> Jeremy Burns
>>>>>>>>>>>>>  jeremybu...@me.com <jeremybu...@mac.com>
>>
>>>>>>>>>>>>> On 30 Apr 2010, at 10:29, Andrei Mita wrote:
>>
>>>>>>>>>>>>> Same install steps here on 1.2.7 / linux / apache.
>>>>>>>>>>>>> No errors.
>>
>>>>>>>>>>>>> On Fri, Apr 30, 2010 at 12:16 PM, Zaky Katalan-Ezra <
>>>>>>>>>>>>> procsh...@gmail.com> wrote:
>>
>>>>>>>>>>>>>> I just install and run this kit with no problem.
>>>>>>>>>>>>>> I learned about it from this thread
>>>>>>>>>>>>>> Using cakekphp 1.3, apach, linux
>>
>>>>>>>>>>>>>> 1. Download
>>>>>>>>>>>>>> http://www.ohloh.net/p/cakephp-debugkit/download?filename=debug_kit_1...
>>>>>>>>>>>>>> 2. extract it under app/plugins/debug_kit (doesn't work without
>>>>>>>>>>>>>> the underscore)
>>>>>>>>>>>>>> 3. Add debug_kit tool bar to app_controller.
>>>>>>>>>>>>>>     In my case var $components = array
>>>>>>>>>>>>>> ('Session','Cookie','DebugKit.Toolbar');
>>>>>>>>>>>>>> 4. Didn't change my debug level, Configure::write('debug', 2);
>>
>>>>>>>>>>>>>> voila.
>>
>>>>>>>>>>>>>> I get a long list of debug properties in the bottom of the page
>>>>>>>>>>>>>> which I presume is what I should get from this kit.
>>
>>>>>>>>>>>>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd
>>>>>>>>>>>>>> help others with their CakePHP related questions.
>>
>>>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>>>> Google Groups "CakePHP" group.
>>>>>>>>>>>>>> To post to this group, send email to cake-php@googlegroups.com
>>>>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>>>>> cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.c om>For more options, visit this group at
>>>>>>>>>>>>>> http://groups.google.com/group/cake-php?hl=en
>>
>>>>>>>>>>>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd
>>>>>>>>>>>>> help others with their CakePHP related questions.
>>
>>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>>> Google Groups "CakePHP" group.
>>>>>>>>>>>>> To post to this group, send email to cake-php@googlegroups.com
>>>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>>>> cake-php+unsubscribe@googlegroups.com For more options, visit
>>>>>>>>>>>>> this group athttp://groups.google.com/group/cake-php?hl=en
>>
>>>>>>>>>>>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd
>>>>>>>>>>>>> help others with their CakePHP related questions.
>>
>>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>>> Google Groups "CakePHP" group.
>>>>>>>>>>>>> To post to this group, send email to cake-php@googlegroups.com
>>>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>>>> cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.c om>For more options, visit this group at
>>>>>>>>>>>>> http://groups.google.com/group/cake-php?hl=en
>>
>>>>>>>>>>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd
>>>>>>>>>>>> help others with their CakePHP related questions.
>>
>>>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>>>> Groups "CakePHP" group.
>>>>>>>>>>>> To post to this group, send email to cake-php@googlegroups.com
>>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>>> cake-php+unsubscribe@googlegroups.com For more options, visit
>>>>>>>>>>>> this group athttp://groups.google.com/group/cake-php?hl=en
>>
>>>>>>>>>>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd
>>>>>>>>>>>> help others with their CakePHP related questions.
>>
>>>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>>>> Groups "CakePHP" group.
>>>>>>>>>>>> To post to this group, send email to cake-php@googlegroups.com
>>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>>> cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.c om>For more options, visit this group at
>>>>>>>>>>>> http://groups.google.com/group/cake-php?hl=en
>>
>>>>>>>>>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd
>>>>>>>>>>> help others with their CakePHP related questions.
>>
>>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>>> Groups "CakePHP" group.
>>>>>>>>>>> To post to this group, send email to cake-php@googlegroups.com
>>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>>> cake-php+unsubscribe@googlegroups.com For more options, visit this
>>>>>>>>>>> group athttp://groups.google.com/group/cake-php?hl=en
>>
>>>>>>>>>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd
>>>>>>>>>>> help others with their CakePHP related questions.
>>
>>>>>>>>>>> You received this message because you are subscribed
>>
>> ...
>>
>> read more »
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: