KDevelop5/Manual/Plugins: PHP Debugging: Difference between revisions
(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...") |
(→Xdebug: fix some typos) |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
== Setup == | == Setup == | ||
=== Xdebug === | === Xdebug - Debugger and Profiler Tool for PHP === | ||
KDevelop uses | KDevelop uses Xdebug through the kdev-xdebug plugin. Setting up Xdebug is tricky, so we recommend you to use the [https://xdebug.org/wizard.php XDebug installation wizard]. | ||
The main step once xdebug is installed is to configure PHP to use | The main step once xdebug is installed is to configure PHP to use Xdebug by adding | ||
zend_extension=path/to/xdebug | zend_extension=path/to/xdebug | ||
Line 22: | Line 22: | ||
If you are doing web development, don't forget to restart your webserver to reload the settings | 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 | Verify your installation by checking your phpinfo() output for an Xdebug section. | ||
=== KDevelop plugins === | === KDevelop plugins === | ||
Line 28: | Line 28: | ||
You need to install these two plugins: | You need to install these two plugins: | ||
* [https://commits.kde.org/kdev-executebrowser | * [https://commits.kde.org/kdev-executebrowser kdev-executebrowser] | ||
* [https://commits.kde.org/kdev- | * [https://commits.kde.org/kdev-xdebug kdev-xdebug] |
Latest revision as of 17:01, 20 December 2017
KDevelop can debug PHP programs, both cli scripts and web applications.
Under Construction
This is a new page, currently under construction!
Setup
Xdebug - Debugger and Profiler Tool for PHP
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: