Re: Proper debugging of CakePHP

2008-06-07 Thread Chowsapal
To get the execution to break in a controller, you need to either: 1) set a break point in the particular controller action you're trying to debug, or 2) make sure to step into $Dispatcher->dispatch($url) (line 82 for my version of Cake), then into return $this->_invoke (my line 246 in dispatche

Re: Proper debugging of CakePHP

2008-06-07 Thread littlewoodEd
I respectfully disagree. I also have XDebug working with eclipse and PDT. I also can set a breakpoint in index.php. I am unable to figure out how to get execution to break in a controller. I've come across other threads in this group where folks are describing the same problem, but no one has

Re: Proper debugging of CakePHP

2008-06-06 Thread Chris Hartjes
On Fri, Jun 6, 2008 at 9:43 AM, Sake <[EMAIL PROTECTED]> wrote: > > ok, so do I run the debugger on the index.php file? How does it work? > You're going off-topic from Cake and into the Land of Debugging. Please use Google or your other favourite search engine to find info on how to use XDebug or

Re: Proper debugging of CakePHP

2008-06-06 Thread Sake
ok, so do I run the debugger on the index.php file? How does it work? On Jun 6, 9:00 am, Chowsapal <[EMAIL PROTECTED]> wrote: > Apache handles the mod_rewrite stuff.  As soon as PHP is called, you > will be able to trace the code. > > On Jun 5, 11:21 pm, Sake <[EMAIL PROTECTED]> wrote: > > > > >

Re: Proper debugging of CakePHP

2008-06-06 Thread Chowsapal
Apache handles the mod_rewrite stuff. As soon as PHP is called, you will be able to trace the code. On Jun 5, 11:21 pm, Sake <[EMAIL PROTECTED]> wrote: > Does it deal well with the mod_rewrite stuff? > > On Jun 5, 10:56 pm, Chowsapal <[EMAIL PROTECTED]> wrote: > > > I use xdebug for php with vim

Re: Proper debugging of CakePHP

2008-06-05 Thread Sake
Does it deal well with the mod_rewrite stuff? On Jun 5, 10:56 pm, Chowsapal <[EMAIL PROTECTED]> wrote: > I use xdebug for php with vim, but there is an xdebug plugin for > eclipse also that does what you are looking for.  You have to add a > few lines to your php.ini, and depending on your setup,

Re: Proper debugging of CakePHP

2008-06-05 Thread Chowsapal
I use xdebug for php with vim, but there is an xdebug plugin for eclipse also that does what you are looking for. You have to add a few lines to your php.ini, and depending on your setup, add a debug flag to the query string, but it's pretty straightforward. On Jun 5, 9:48 pm, Sake <[EMAIL PROTE

Proper debugging of CakePHP

2008-06-05 Thread Sake
Hi, Question: I did a lot of java coding in eclipse in my life and find that the debugging IDE tools in eclipse are incredibly useful. Most importantly, I like that they allow you to step into and out of function calls, view the call stack and variable values at any line of code as the code progr