четверг, 14 февраля 2013 г.

как дебажить php

the conditional clause must be executed. And besides, it looks even uglier in the code.

This affects performance, because even if the var_dump() statements are not executed,

Another option would be to wrap the var_dump() in conditional clauses, and only execute them when, say, a constant DEBUG

Of course, you could just comment out the var_dump() statements, but that looks really ugly in the code.

statements to your code again because you need to go hunting another bug.

It may well be that a few days later you’ll find yourself adding the very same var_dump()

you must remove all var_dump() statements again (well you should, at least).

still need to change the program code to debug a PHP script. And worse, after you have finished debugging,

While there is nothing wrong using var_dump() statements in itself, you

halt program execution at a certain point.

var_dump() statement, possibly in conjunction with die() to

The most widely used debugger for PHP still seems to be a

Debugging software is not exactly a fun job for developers.

of the series explains how to install and configure xdebug.

In this article, we assume that you have xdebug installed on your system. If you haven’t, the first article

This week, we will explore debugging PHP code with xdebug, the swiss army knife for PHP developers.

Welcome to the fourth installment in our five-part series of xdebug articles on the Zend DevZone.

Part Four: Debugging PHP applications with xdebug

Debugging PHP applications with xdebug

DevZone » Debugging PHP applications with xdebug

Комментариев нет:

Отправить комментарий