Hi All,
First off let me say that from what I've seen of the XDebug debugger,
I'm pretty impressed--it would just be nice if I could actually use it
to its full potential in Eclipse.
My Environment:
- XAMPP 1.6.6a Installation (PHP 5.2.5, Apache 2.2.8, MySQL 5.0.51a)
- Eclipse 3.3 w/PDT 1.0.2
- XDebug 2.0.3 for PHP 5.2.5
- Zend Framework 1.5
- Firefox 2.0.x
I have managed to get everything set up so that I can launch a debug
session with XDebug however I'm running into a couple of snags.
1) I cannot seem to initialize a debugging session through the XDebug
Helper plugin for Firfefox because of all things it assigns the
following value to the XDEBUG_SESSION_ START cookie, "ECLIPSE_XDEBUG ."
Which would be fine if Eclipse assigned the same value, instead
Eclipse is assigning the value "ECLIPSE_DB GP" to the id key. Is there
any way I can get these two to match up. I've tried finding where I
need to change/set this for Eclipse but it seems to ignore any value I
put in the php.ini under xdebug.idkey, furthermore trying to change
the value in XDebug Helper's options doesn't work (theres a box I can
edit the value of the idkey in, but I don't think it actually does
anything).
2) If I have started a debug session from Eclipse I can step through
the bootstrapping fine up through the first dispatch event by the Zend
Framework front controller. After that all of my breakpoints are
ignored despite navigating into a controller/view. Does anyone have
any advice in terms of using XDebug with the Zend Framework? I thought
initially that my rewrite rule might be killing the XDebug session
somehow, but if its a cookie I find that rather hard to believe.
I suppose worst case scenario for debugging purposes I can manually
create the cookie in my bootstrap and persist it if necessary.
Any help would be greatly appreciated! Thank you very much!
First off let me say that from what I've seen of the XDebug debugger,
I'm pretty impressed--it would just be nice if I could actually use it
to its full potential in Eclipse.
My Environment:
- XAMPP 1.6.6a Installation (PHP 5.2.5, Apache 2.2.8, MySQL 5.0.51a)
- Eclipse 3.3 w/PDT 1.0.2
- XDebug 2.0.3 for PHP 5.2.5
- Zend Framework 1.5
- Firefox 2.0.x
I have managed to get everything set up so that I can launch a debug
session with XDebug however I'm running into a couple of snags.
1) I cannot seem to initialize a debugging session through the XDebug
Helper plugin for Firfefox because of all things it assigns the
following value to the XDEBUG_SESSION_ START cookie, "ECLIPSE_XDEBUG ."
Which would be fine if Eclipse assigned the same value, instead
Eclipse is assigning the value "ECLIPSE_DB GP" to the id key. Is there
any way I can get these two to match up. I've tried finding where I
need to change/set this for Eclipse but it seems to ignore any value I
put in the php.ini under xdebug.idkey, furthermore trying to change
the value in XDebug Helper's options doesn't work (theres a box I can
edit the value of the idkey in, but I don't think it actually does
anything).
2) If I have started a debug session from Eclipse I can step through
the bootstrapping fine up through the first dispatch event by the Zend
Framework front controller. After that all of my breakpoints are
ignored despite navigating into a controller/view. Does anyone have
any advice in terms of using XDebug with the Zend Framework? I thought
initially that my rewrite rule might be killing the XDebug session
somehow, but if its a cookie I find that rather hard to believe.
I suppose worst case scenario for debugging purposes I can manually
create the cookie in my bootstrap and persist it if necessary.
Any help would be greatly appreciated! Thank you very much!