<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Helvetica, Arial, sans-serif">Hi all, I have been
striving to debug php with xdebug and the kdev-xdebug plugin for
a while and I was to give up when I found a good documentation
in the counterpart plugin for code :(.</font></p>
<p><font face="Helvetica, Arial, sans-serif">I would like to add
that information to the kdevelop plugin so that other users can
debug without problems. The relevant intormation is:</font></p>
<p><font face="Helvetica, Arial, sans-serif"><br>
</font></p>
<p><font face="Helvetica, Arial, sans-serif">Install XDebug I highly
recommend you make a simple test.php file, put a phpinfo();
statement in there, then copy the output and paste it into the
XDebug installation wizard. It will analyze it and give you
tailored installation instructions for your environment. In
short:<br>
<br>
On Windows: Download the appropiate precompiled DLL for your
PHP version, architecture (64/32 Bit), thread safety (TS/NTS)
and Visual Studio compiler version and place it in your PHP
extension folder.<br>
<br>
On Linux: Either download the source code as a tarball or
clone it with git, then compile it.<br>
<br>
Configure PHP to use XDebug by adding
zend_extension=path/to/xdebug to your php.ini. The path of your
php.ini is shown in your phpinfo() output under "Loaded
Configuration File".<br>
Enable remote debugging in your php.ini:<br>
<br>
[XDebug]<br>
xdebug.remote_enable = 1<br>
xdebug.remote_autostart = 1<br>
<br>
There are other ways to tell XDebug to connect to a remote
debugger than remote_autostart, like cookies, query parameters
or browser extensions. I recommend remote_autostart because it
"just works". There are also a variety of other options, like
the port (by default 9000), please see the XDebug documentation
on remote debugging for more information.<br>
<br>
If you are doing web development, don't forget to restart your
webserver to reload the settings<br>
<br>
Verify your installation by checking your phpinfo() output for
an XDebug section.<br>
<br>
</font></p>
<p>Kind regards.</p>
<p><br>
</p>
</body>
</html>