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
dispatcher.php), then call_user_func_array (my line 264 in
dispatcher.php) should take you into your code.

Mind you, I'm using XDebug in vim to do this, but I would be shocked
if Eclipse's version didn't support this.

On Jun 7, 4:53 pm, littlewoodEd <[EMAIL PROTECTED]> wrote:
> 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 answered the question.
>
> Is anyone out there successfully single-stepping through controller
> code?
> thanks,
> --ed
>
> On Jun 6, 9:45 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > 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 useXDebugor any other debugging tools.
>
> > --
> > Chris Hartjes
> > Internet Loudmouth
> > Motto for 2008: "Moving from herding elephants to handling snakes..."
> > @TheKeyBoard:http://www.littlehart.net/atthekeyboard
>
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 answered the question.

Is anyone out there successfully single-stepping through controller
code?
thanks,
--ed

On Jun 6, 9:45 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> 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 useXDebugor any other debugging tools.
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 any other debugging tools.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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:
>
>
>
> > 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, add a debug
> > > flag to the query string, but it's pretty straightforward.
>
> > > On Jun 5, 9:48 pm, Sake <[EMAIL PROTECTED]> wrote:
>
> > > > 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 progresses.
>
> > > > Has anybody successfully done this in cakePHP with any tools? I'd like
> > > > to see the sequence of calls from the time the dispatcher is
> > > > instantiated to the time that the views are rendered.
>
> > > > Just curious if anybody's done this successfully. I've recently
> > > > installed Eclipse PDT with Zend Debugger in an attempt to do this and
> > > > had no luck. I'm curious if I should keep trying or if it's
> > > > impossible.
>
> > > > Thanks,
> > > > Eduardo- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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, 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 PROTECTED]> wrote:
>
> > > 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 progresses.
>
> > > Has anybody successfully done this in cakePHP with any tools? I'd like
> > > to see the sequence of calls from the time the dispatcher is
> > > instantiated to the time that the views are rendered.
>
> > > Just curious if anybody's done this successfully. I've recently
> > > installed Eclipse PDT with Zend Debugger in an attempt to do this and
> > > had no luck. I'm curious if I should keep trying or if it's
> > > impossible.
>
> > > Thanks,
> > > Eduardo- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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, add a debug
> flag to the query string, but it's pretty straightforward.
>
> On Jun 5, 9:48 pm, Sake <[EMAIL PROTECTED]> wrote:
>
>
>
> > 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 progresses.
>
> > Has anybody successfully done this in cakePHP with any tools? I'd like
> > to see the sequence of calls from the time the dispatcher is
> > instantiated to the time that the views are rendered.
>
> > Just curious if anybody's done this successfully. I've recently
> > installed Eclipse PDT with Zend Debugger in an attempt to do this and
> > had no luck. I'm curious if I should keep trying or if it's
> > impossible.
>
> > Thanks,
> > Eduardo- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 PROTECTED]> wrote:
> 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 progresses.
>
> Has anybody successfully done this in cakePHP with any tools? I'd like
> to see the sequence of calls from the time the dispatcher is
> instantiated to the time that the views are rendered.
>
> Just curious if anybody's done this successfully. I've recently
> installed Eclipse PDT with Zend Debugger in an attempt to do this and
> had no luck. I'm curious if I should keep trying or if it's
> impossible.
>
> Thanks,
> Eduardo
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



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 progresses.

Has anybody successfully done this in cakePHP with any tools? I'd like
to see the sequence of calls from the time the dispatcher is
instantiated to the time that the views are rendered.

Just curious if anybody's done this successfully. I've recently
installed Eclipse PDT with Zend Debugger in an attempt to do this and
had no luck. I'm curious if I should keep trying or if it's
impossible.

Thanks,
Eduardo
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---