Lack of documentation for kdev-xdebug plugin

santilin software at noviolento.es
Tue Dec 19 12:00:06 UTC 2017


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 :(.

I would like to add that information to the kdevelop plugin so that 
other users can debug without problems. The relevant intormation is:


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:

    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.

    On Linux: Either download the source code as a tarball or clone it 
with git, then compile it.

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".
Enable remote debugging in your php.ini:

[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1

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.

If you are doing web development, don't forget to restart your webserver 
to reload the settings

Verify your installation by checking your phpinfo() output for an XDebug 
section.

Kind regards.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20171219/ab90f3e9/attachment.html>


More information about the KDevelop-devel mailing list