Re: PHP debugger recommendations, anyone?
| From: | Nathan Rixham | Date: | Sat, 09 Feb 2008 20:02:34 +0000 |
| Subject: | Re: PHP debugger recommendations, anyone? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269011@lists.php.net to get a copy of this message | ||
It suddenly dawned on me that you are doing an echo for every paremeter, a debugger will never completely alleviate the need for this, however try using:
print_r(get_defined_vars());
instead, that way you get everything output that you could need, it's often also worth putting an exit(); after prining out so you can see where the script is failing; if indeed it is.
Nathan
Nathan Rixham wrote:
zend studio with zend debugger? Nathan Nobbe wrote:On Feb 9, 2008 11:48 AM, Mary Anderson <maryfran@demog.berkeley.edu> wrote:Hi all, I am getting tired of writing echo statements for almost every parameter, then deleting them while I am writing code. I would really like a debugger which would work with my browser. I have run across an open source one, Xdebug, and would like to hear of other's experience with it. 2.0.2 is, I believe, the latest release.hi mary, using xdebug for debugging involves the selection of a debugging client besides just the debugger itself. with xdebug ive used Eclipse PDT, and Protoeditor. PDT was really smooth because if i did something in the browser like, navigate away from the current page for example; PDT seemed to capture that. The downside of PDT was a lack of directory mapping support (they may have it by now). what this is, is a way to tell your xdebug client where the files on the remote server are, that are on your local system (the ones youre debugging). since PDT lacked this feature, i was unable to set breakpoints, which was very limiting. protoeditor is cool, but i had some problems with it as well; in all it didnt seem nearly as smooth as PDT and it didnt seem to be able to capture navigation away from the current page in the browser, also quite limiting. one issue i had w/ PDT was personal confusion with the controls in the ui. sometimes i would have to close down eclipse just to sort of reset things. in general, i think youll find these tools neat to experiment with, but when i was using them several months back they didnt seem ready for prime time. perhaps i should give them another look.. -nathan