 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Andreas Gohr's Blog: Understanding PHP code better with Xdebug
by Chris Cornutt February 22, 2008 @ 09:14:00
Andreas Gohr has a new blog post today that talks about a way to really get to know your code better - use XDebug to see it from the inside out.
Xdebug is a PHP extension which helps you to understand, debug and profile PHP. It can help you to find bottlenecks or give you an quick overview what happens in code you aren't familiar with, yet.
The post gives a brief overview of the installation of the extension (building a shared module) and shows how to get started with profiling an application. He talks about the cachegrind tool you can use to parse the results and the kcachegrind app that will make the results a bit more visual.
As a bonus, he also throws in a bit about function tracing - picking out each small bit of functionality in the code (the function/methods) and gathering stats for each.
voice your opinion now!
xdebug profile code tutorial install cachegrind kcachegrind profile trace
Zend Developer Zone: Introducing xdebug
by Chris Cornutt December 10, 2007 @ 12:56:00
On the Zend Developer Zone today, Stefan Priebsch has written up an article introducing fellow developers to XDebug, a popular PHP debugging suite.
This article is the first installment of a five-part series of articles covering xdebug, a free and open source swiss army knife tool for PHP developers. xdebug is a PHP extension created by Derick Rethans, one of the PHP core developers. This week, we will show you how to install xdebug and introduce you to some of the basic features. In the subsequent parts of this article series, we will have a closer look at one of xdebug's main features, namely tracing, profiling, debugging, and code coverage.
In this first installment, he looks at installing the software (both on a unix-based system and on a Windows box) and how to turn it on to work with your web server. He also mentions some of the error output options including the "new and improved" var_dump call and the stack trace method to help you locate exactly where in the code the error's hidden.
voice your opinion now!
xdebug debugger introduction install error output trace vardump xdebug debugger introduction install error output trace vardump
Tony Freixas's Blog: High-performance debugging
by Chris Cornutt September 26, 2007 @ 12:59:00
Tony Freixas has posted a new article covering his thoughts on high-performance debugging with PHP5:
In this article, I will show you how to use PHP 5 input filters to support debug, trace and assert statements so that a one-line change disables these statements and restores your script to full production performance.
He makes a custom solution, a simple method for just outputting simple debug statements via his own custom debugging classes - thDebug, theTrace and thAssert. He wraps all of these in a thDebugManager class to make them all play nice together.
With these in place, he moves on to the real key to the debugger, using the input filter extension that comes with PHP5. He makes a thAbstractStreamFilter abstract class to base the filtering on and, using this interface, makes his thDebugFilter class to handle the various debugging outputs. He uses the __autoload functionality to load it correctly into each page that needs it.
voice your opinion now!
debugging performance filter php5 trace assert debug debugging performance filter php5 trace assert debug
|
Community Events
Don't see your event here? Let us know!
|