So I hope this gets into the world out there. I’m running the latest version possible of XAMPP for windows (shame on me for windows right?), Eclipse and xDebug.
One interesting thing that has frustrated the absolute hell out of me while working recently is that Apache continues to fail on every breakpoint in my code. “Apache has Stopped working”, and then silently restarts itself.
Sadly there is no further advise from Apache or PHP Logs even went making everything log to their fullest capacity.
And thus brings me to http://windows.fyicenter.com/view.php?ID=68&R=71 – Which is a fantastic little thing you can try on your local dev machines – which quickly and shamefully easily makes your PHP scripts run in php-cgi rather than the default setup of XAMPP.
I’m break-pointing again and everything is well in the land of New Zealand (Oh btw, I’m in New Zealand working my little coding ass off at the moment, should be back in the land of Oz early early June).
Thought’d I’d follow this up.
While yes PDO modules for PHP cause issues with the default xDebug version shipped with XAMPP at time of this article’s writing, I believe the issue in my crashing was actually caused by the inability for windows to debug two or more threads at the same time, and simply crashed.
So when it comes to things like AJAX debugging, you’re kind of left in the dark when you start debugging the first thread that comes up, instead of the second (for the AJAX request).
Installed Linux, as it turns out >_>
Okay I’ll point out now that while it worked momentarily, after getting back to my development Apache has started to crash again. Such is life. and tonight I may install Linux on this laptop work has provided.
Should also mention here, that I tried removing PDO modules from PHP, and also upgraded the default xDebug.dll file on the xDebug site with what was suggested. Apache still continued to crash (just because).
What I’m kind of “not” getting, is that XAMPP is meant to be (imo) strictly a developer suite. Surely this sort of thing should run right out of the box. I can’t remember an XAMPP installation where that was the case.
Now if I was back at home on my own PC I would totally be using linux and install all the LAMP packages separately and have mah suphp. Cause I love that.