2019-03-07 15:35:54 +00:00
|
|
|
.. include:: /_includes/snippets/__ANNOUNCEMENTS__.rst
|
|
|
|
|
2018-07-03 13:47:58 +00:00
|
|
|
.. _configure_php_xdebug:
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2018-07-03 13:47:58 +00:00
|
|
|
********************
|
|
|
|
Configure PHP Xdebug
|
|
|
|
********************
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
This section explains in depth how to enable and use PHP Xdebug with the Devilbox.
|
2018-04-08 10:20:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
**Table of Contents**
|
|
|
|
|
|
|
|
.. contents:: :local:
|
|
|
|
|
2018-07-12 21:14:03 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
Introduction
|
|
|
|
============
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
In order to have a working Xdebug, you need to ensure two things:
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
1. **PHP Xdebug** must be configured and enabled in PHP itself
|
|
|
|
2. Your **IDE/editor** must be configured and requires a way talk to PHP
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
Configuring PHP Xdebug will slightly differ when configuring it for a dockerized environment.
|
|
|
|
This is due to the fact that Docker versions on different host os have varying implementations of
|
|
|
|
how they connect back to the host.
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
Most IDE or editors will also require different configurations for how they talk to PHP Xdebug.
|
|
|
|
This is at least most likely the case for ``xdebug.idekey``.
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
.. seealso:: :ref:`configure_php_xdebug_options`
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
|
|
|
|
Configure Xdebug
|
|
|
|
================
|
|
|
|
|
|
|
|
Docker on Linux
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Docker on Linux allows Xdebug to automatically connect back to the host system without the need
|
|
|
|
of an explicit IP address.
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
.. toctree::
|
|
|
|
:glob:
|
|
|
|
:maxdepth: 1
|
|
|
|
:hidden:
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
/intermediate/configure-php-xdebug/linux/*
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
.. seealso::
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
* :ref:`configure_php_xdebug_lin_atom`
|
|
|
|
* :ref:`configure_php_xdebug_lin_phpstorm`
|
|
|
|
* :ref:`configure_php_xdebug_lin_sublime`
|
|
|
|
* :ref:`configure_php_xdebug_lin_vscode`
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
Docker on MacOS
|
|
|
|
---------------
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
.. toctree::
|
|
|
|
:glob:
|
|
|
|
:maxdepth: 1
|
|
|
|
:hidden:
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
/intermediate/configure-php-xdebug/macos/*
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
.. seealso::
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
* :ref:`configure_php_xdebug_mac_atom`
|
|
|
|
* :ref:`configure_php_xdebug_mac_phpstorm`
|
|
|
|
* :ref:`configure_php_xdebug_mac_sublime`
|
|
|
|
* :ref:`configure_php_xdebug_mac_vscode`
|
2018-04-10 07:32:06 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
Docker on Windows
|
|
|
|
-----------------
|
2018-07-23 21:25:48 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
.. toctree::
|
|
|
|
:glob:
|
|
|
|
:maxdepth: 1
|
|
|
|
:hidden:
|
2018-04-10 07:32:06 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
/intermediate/configure-php-xdebug/windows/*
|
2018-04-10 07:32:06 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
.. seealso::
|
2018-04-10 07:32:06 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
* :ref:`configure_php_xdebug_win_atom`
|
|
|
|
* :ref:`configure_php_xdebug_win_phpstorm`
|
|
|
|
* :ref:`configure_php_xdebug_win_sublime`
|
|
|
|
* :ref:`configure_php_xdebug_win_vscode`
|
2018-04-10 07:32:06 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
Docker Toolbox
|
|
|
|
--------------
|
2018-04-10 07:32:06 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
Docker Toolbox configuration is equal, no matter if it is started on MacOS or Windows, as both
|
|
|
|
use a Linux system inside VirtualBox.
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
.. toctree::
|
|
|
|
:glob:
|
|
|
|
:maxdepth: 1
|
|
|
|
:hidden:
|
2018-04-08 10:20:00 +00:00
|
|
|
|
2019-03-02 16:57:21 +00:00
|
|
|
/intermediate/configure-php-xdebug/toolbox/*
|
2018-04-10 07:32:06 +00:00
|
|
|
|
2018-07-23 21:25:48 +00:00
|
|
|
.. seealso::
|
2019-03-02 16:57:21 +00:00
|
|
|
|
|
|
|
* :ref:`configure_php_xdebug_toolbox_atom`
|
|
|
|
* :ref:`configure_php_xdebug_toolbox_phpstorm`
|
|
|
|
* :ref:`configure_php_xdebug_toolbox_sublime`
|
|
|
|
* :ref:`configure_php_xdebug_toolbox_vscode`
|