Skip Site Navigation «

DRX

app«drx

Web Developer Resource Index: Debugging

PHP Debugging is no different than debugging software written in any programming language. You want a tool that allows you to execute your code in slow motion, stepping through it line by line, either entering into function calls while displaying parameters, or stepping over them, setting watch points, monitoring or setting variables, stopping and restarting execution, performing stack traces, tracking memory allocation, and so on. Some advanced debuggers even have the ability to simulate the instruction sets of more that one CPU.

When it comes to debugging PHP applications, Xdebug is the only way to go. It has the vast majority of the features listed above—except for the last one—which is normally only reserved for low-level programming languages such as C.

Xdebug also has a built-in profiler, with output in Cachegrind format. After profiling is complete, simply fire-up your favorite viewer to analyze the results.

In addition to Xdebug, there are a number of other tools, techniques, resources, and articles listed in PHP Debugging.

Updated: Friday, November 14th, 2008 @ 3:09 PM EST

iconProgramming:Languages:PHP:Debugging {0}(8)[79]

Navigation

Resources

Matching Tags

Indexes

§ A.Author
§ B.Best
§ D.Domain
§ F.Recent
§ G.Tag
§ H.Title

Search for PHP Debugging on:


Last updated: Friday, November 14th, 2008 @ 3:09 PM EST [2008-11-14T20:09:03Z]   home

(c) 2008-2010, Douglas W. Clifton, loadaveragezero.com, all rights reserved.