KDevelop5/Manual/Plugins: PHP Debugging

Revision as of 12:32, 20 December 2017 by Santilin (Talk | contribs) (Created page with "KDevelop can debug PHP programs, both cli scripts and web applications. {{Construction}} == Setup == === Xdebug === KDevelop uses xdebug through the kdev-xdebug plugin. S...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

KDevelop can debug PHP programs, both cli scripts and web applications.

Under construction.png
 
Under Construction
This is a new page, currently under construction!


Setup

Xdebug

KDevelop uses xdebug through the kdev-xdebug plugin. Setting up xdebug is tricky, so we recommend you to use the XDebug installation wizard. The main step once xdebug is installed is to 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

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.

KDevelop plugins

You need to install these two plugins:


Content is available under Creative Commons License SA 4.0 unless otherwise noted.