From 0decf40b90fd3e36a6af5800e617eb260c6be8fc Mon Sep 17 00:00:00 2001 From: Baptiste Bouchereau Date: Thu, 11 Jul 2019 00:46:26 +0200 Subject: [PATCH] Missing instructions --- docker-vscode-php-xdebug/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-vscode-php-xdebug/README.md b/docker-vscode-php-xdebug/README.md index ec56666..130a988 100644 --- a/docker-vscode-php-xdebug/README.md +++ b/docker-vscode-php-xdebug/README.md @@ -9,14 +9,15 @@ Run ```bash git clone https://github.com/Ovski4/tutorials.git cd docker-vscode-php-xdebug -docker-compose up -d ``` +Edit the **php.ini** with your internal host ip. On a ubuntu laptop, running `hostname -I | awk '{print $1}'` on the command line prints it. + +Then run `docker-compose up -d`. + In vscode install the **PHP Debug** extension by Felix Becker. Then select the `debug` tab, then click `Add Configuration`.. and select the `PHP` environment. This will open the `launch.json` file. Erase its content with the following: ``` - - { "version": "0.2.0", "configurations": [ @@ -33,4 +34,4 @@ In vscode install the **PHP Debug** extension by Felix Becker. Then select the ` } ``` -Add a breakpoint in index.php and hit Listen for XDebug. Browse http://localhost:8080/. +Add a breakpoint in **index.php** and hit **Listen for XDebug**. Browse [http://localhost:8080/](http://localhost:8080/).