mirror of
https://github.com/cytopia/devilbox.git
synced 2025-06-17 14:48:17 +00:00
#209 Fix Xdebug documentation for Docker for Windows
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 30 KiB |
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 34 KiB |
@ -36,41 +36,14 @@ Gather Host IP address
|
|||||||
On Windows you will have to manually retrieve the IP address to which Xdebug should connect to
|
On Windows you will have to manually retrieve the IP address to which Xdebug should connect to
|
||||||
via ``xdebug.remote_host``.
|
via ``xdebug.remote_host``.
|
||||||
|
|
||||||
When gathering the Windows host IP address you will need to distinguish between two cases depending
|
When you have done no custom configuration in your Virtual Switch manager, Docker for Windows will
|
||||||
on your configuration:
|
use the ``Default Switch`` automatically.
|
||||||
|
|
||||||
1. DockerNat IP address (no custom configuration applied)
|
|
||||||
2. Virtual Switch IP address (you have created a Virtual Switch to allow Internet access to your container)
|
|
||||||
|
|
||||||
Only one of the options may be valid for your setup.
|
|
||||||
|
|
||||||
DockerNAT IP address
|
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
1. Open command line
|
|
||||||
2. Enter ``ipconfig``
|
|
||||||
3. Look for the IP4 address in ``DockerNAT`` (e.g.: ``192.168.0.12``)
|
|
||||||
|
|
||||||
.. important::
|
|
||||||
``192.168.0.12`` is meant as an example and will eventually differ on your system.
|
|
||||||
Ensure you substitute it with the correct IP address.
|
|
||||||
|
|
||||||
.. seealso:: :ref:`howto_open_terminal_on_win`
|
|
||||||
|
|
||||||
Virtual Switch IP address
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
When you have created a custom Virtual Switch for you Docker setup, you will have to gather the
|
|
||||||
Virtual Switch IP address instead of the DockerNat IP address.
|
|
||||||
|
|
||||||
Let's assume you have created the switch by the name **New Virtual Switch** as follows:
|
|
||||||
|
|
||||||
.. include:: /_includes/figures/xdebug/windows/virtual-switch-manager.rst
|
.. include:: /_includes/figures/xdebug/windows/virtual-switch-manager.rst
|
||||||
|
|
||||||
|
|
||||||
1. Open command line
|
1. Open command line
|
||||||
2. Enter ``ipconfig``
|
2. Enter ``ipconfig``
|
||||||
3. Look for the IP4 address in ``New Virtual Switch`` (e.g.: ``192.168.0.12``)
|
3. Look for the IP4 address in ``Default Switch`` (e.g.: ``192.168.0.12``)
|
||||||
|
|
||||||
.. include:: /_includes/figures/xdebug/windows/ipconfig.rst
|
.. include:: /_includes/figures/xdebug/windows/ipconfig.rst
|
||||||
|
|
||||||
|
@ -36,41 +36,14 @@ Gather Host IP address
|
|||||||
On Windows you will have to manually retrieve the IP address to which Xdebug should connect to
|
On Windows you will have to manually retrieve the IP address to which Xdebug should connect to
|
||||||
via ``xdebug.remote_host``.
|
via ``xdebug.remote_host``.
|
||||||
|
|
||||||
When gathering the Windows host IP address you will need to distinguish between two cases depending
|
When you have done no custom configuration in your Virtual Switch manager, Docker for Windows will
|
||||||
on your configuration:
|
use the ``Default Switch`` automatically.
|
||||||
|
|
||||||
1. DockerNat IP address (no custom configuration applied)
|
|
||||||
2. Virtual Switch IP address (you have created a Virtual Switch to allow Internet access to your container)
|
|
||||||
|
|
||||||
Only one of the options may be valid for your setup.
|
|
||||||
|
|
||||||
DockerNAT IP address
|
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
1. Open command line
|
|
||||||
2. Enter ``ipconfig``
|
|
||||||
3. Look for the IP4 address in ``DockerNAT`` (e.g.: ``192.168.0.12``)
|
|
||||||
|
|
||||||
.. important::
|
|
||||||
``192.168.0.12`` is meant as an example and will eventually differ on your system.
|
|
||||||
Ensure you substitute it with the correct IP address.
|
|
||||||
|
|
||||||
.. seealso:: :ref:`howto_open_terminal_on_win`
|
|
||||||
|
|
||||||
Virtual Switch IP address
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
When you have created a custom Virtual Switch for you Docker setup, you will have to gather the
|
|
||||||
Virtual Switch IP address instead of the DockerNat IP address.
|
|
||||||
|
|
||||||
Let's assume you have created the switch by the name **New Virtual Switch** as follows:
|
|
||||||
|
|
||||||
.. include:: /_includes/figures/xdebug/windows/virtual-switch-manager.rst
|
.. include:: /_includes/figures/xdebug/windows/virtual-switch-manager.rst
|
||||||
|
|
||||||
|
|
||||||
1. Open command line
|
1. Open command line
|
||||||
2. Enter ``ipconfig``
|
2. Enter ``ipconfig``
|
||||||
3. Look for the IP4 address in ``New Virtual Switch`` (e.g.: ``192.168.0.12``)
|
3. Look for the IP4 address in ``Default Switch`` (e.g.: ``192.168.0.12``)
|
||||||
|
|
||||||
.. include:: /_includes/figures/xdebug/windows/ipconfig.rst
|
.. include:: /_includes/figures/xdebug/windows/ipconfig.rst
|
||||||
|
|
||||||
|
@ -36,41 +36,14 @@ Gather Host IP address
|
|||||||
On Windows you will have to manually retrieve the IP address to which Xdebug should connect to
|
On Windows you will have to manually retrieve the IP address to which Xdebug should connect to
|
||||||
via ``xdebug.remote_host``.
|
via ``xdebug.remote_host``.
|
||||||
|
|
||||||
When gathering the Windows host IP address you will need to distinguish between two cases depending
|
When you have done no custom configuration in your Virtual Switch manager, Docker for Windows will
|
||||||
on your configuration:
|
use the ``Default Switch`` automatically.
|
||||||
|
|
||||||
1. DockerNat IP address (no custom configuration applied)
|
|
||||||
2. Virtual Switch IP address (you have created a Virtual Switch to allow Internet access to your container)
|
|
||||||
|
|
||||||
Only one of the options may be valid for your setup.
|
|
||||||
|
|
||||||
DockerNAT IP address
|
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
1. Open command line
|
|
||||||
2. Enter ``ipconfig``
|
|
||||||
3. Look for the IP4 address in ``DockerNAT`` (e.g.: ``192.168.0.12``)
|
|
||||||
|
|
||||||
.. important::
|
|
||||||
``192.168.0.12`` is meant as an example and will eventually differ on your system.
|
|
||||||
Ensure you substitute it with the correct IP address.
|
|
||||||
|
|
||||||
.. seealso:: :ref:`howto_open_terminal_on_win`
|
|
||||||
|
|
||||||
Virtual Switch IP address
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
When you have created a custom Virtual Switch for you Docker setup, you will have to gather the
|
|
||||||
Virtual Switch IP address instead of the DockerNat IP address.
|
|
||||||
|
|
||||||
Let's assume you have created the switch by the name **New Virtual Switch** as follows:
|
|
||||||
|
|
||||||
.. include:: /_includes/figures/xdebug/windows/virtual-switch-manager.rst
|
.. include:: /_includes/figures/xdebug/windows/virtual-switch-manager.rst
|
||||||
|
|
||||||
|
|
||||||
1. Open command line
|
1. Open command line
|
||||||
2. Enter ``ipconfig``
|
2. Enter ``ipconfig``
|
||||||
3. Look for the IP4 address in ``New Virtual Switch`` (e.g.: ``192.168.0.12``)
|
3. Look for the IP4 address in ``Default Switch`` (e.g.: ``192.168.0.12``)
|
||||||
|
|
||||||
.. include:: /_includes/figures/xdebug/windows/ipconfig.rst
|
.. include:: /_includes/figures/xdebug/windows/ipconfig.rst
|
||||||
|
|
||||||
|
@ -36,41 +36,14 @@ Gather Host IP address
|
|||||||
On Windows you will have to manually retrieve the IP address to which Xdebug should connect to
|
On Windows you will have to manually retrieve the IP address to which Xdebug should connect to
|
||||||
via ``xdebug.remote_host``.
|
via ``xdebug.remote_host``.
|
||||||
|
|
||||||
When gathering the Windows host IP address you will need to distinguish between two cases depending
|
When you have done no custom configuration in your Virtual Switch manager, Docker for Windows will
|
||||||
on your configuration:
|
use the ``Default Switch`` automatically.
|
||||||
|
|
||||||
1. DockerNat IP address (no custom configuration applied)
|
|
||||||
2. Virtual Switch IP address (you have created a Virtual Switch to allow Internet access to your container)
|
|
||||||
|
|
||||||
Only one of the options may be valid for your setup.
|
|
||||||
|
|
||||||
DockerNAT IP address
|
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
1. Open command line
|
|
||||||
2. Enter ``ipconfig``
|
|
||||||
3. Look for the IP4 address in ``DockerNAT`` (e.g.: ``192.168.0.12``)
|
|
||||||
|
|
||||||
.. important::
|
|
||||||
``192.168.0.12`` is meant as an example and will eventually differ on your system.
|
|
||||||
Ensure you substitute it with the correct IP address.
|
|
||||||
|
|
||||||
.. seealso:: :ref:`howto_open_terminal_on_win`
|
|
||||||
|
|
||||||
Virtual Switch IP address
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
When you have created a custom Virtual Switch for you Docker setup, you will have to gather the
|
|
||||||
Virtual Switch IP address instead of the DockerNat IP address.
|
|
||||||
|
|
||||||
Let's assume you have created the switch by the name **New Virtual Switch** as follows:
|
|
||||||
|
|
||||||
.. include:: /_includes/figures/xdebug/windows/virtual-switch-manager.rst
|
.. include:: /_includes/figures/xdebug/windows/virtual-switch-manager.rst
|
||||||
|
|
||||||
|
|
||||||
1. Open command line
|
1. Open command line
|
||||||
2. Enter ``ipconfig``
|
2. Enter ``ipconfig``
|
||||||
3. Look for the IP4 address in ``New Virtual Switch`` (e.g.: ``192.168.0.12``)
|
3. Look for the IP4 address in ``Default Switch`` (e.g.: ``192.168.0.12``)
|
||||||
|
|
||||||
.. include:: /_includes/figures/xdebug/windows/ipconfig.rst
|
.. include:: /_includes/figures/xdebug/windows/ipconfig.rst
|
||||||
|
|
||||||
@ -137,7 +110,7 @@ You will need to configure the path mapping in ``launch.json`` (VSCode configura
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"port": 9000,
|
"port": 9000,
|
||||||
"pathMappings": {
|
"pathMappings": {
|
||||||
"/shared/httpd/mytest/htdocs": "${workspaceFolder}/htdocs"
|
"/shared/httpd/mytest/htdocs": "${workspaceRoot}/htdocs"
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"name": "Launch currently open script",
|
"name": "Launch currently open script",
|
||||||
|
Reference in New Issue
Block a user