You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 - First install `xDebug` in the Workspace and the PHP-FPM Containers:
279
279
<br>
280
-
a) open the `docker-compose.yml` file
280
+
a) open the `.env` file
281
281
<br>
282
-
b) search for the `INSTALL_XDEBUG` argument under the Workspace Container
282
+
b) search for the `WORKSPACE_INSTALL_XDEBUG` argument under the Workspace Container
283
283
<br>
284
284
c) set it to `true`
285
285
<br>
286
-
d) search for the `INSTALL_XDEBUG` argument under the PHP-FPM Container
286
+
d) search for the `PHP_FPM_INSTALL_XDEBUG` argument under the PHP-FPM Container
287
287
<br>
288
288
e) set it to `true`
289
289
290
-
It should be like this:
291
-
292
-
```yml
293
-
workspace:
294
-
build:
295
-
context: ./workspace
296
-
args:
297
-
- INSTALL_XDEBUG=true
298
-
...
299
-
php-fpm:
300
-
build:
301
-
context: ./php-fpm
302
-
args:
303
-
- INSTALL_XDEBUG=true
304
-
...
305
-
```
306
-
307
-
2 - Open `laradock/workspace/xdebug.ini` and `laradock/php-fpm/xdebug.ini` and enable at least the following configurations:
308
-
309
-
```
310
-
xdebug.remote_autostart=1
311
-
xdebug.remote_enable=1
312
-
xdebug.remote_connect_back=0
313
-
; NOTE: The dockerhost is your vEthernet (DockerNAT) IP
314
-
xdebug.remote_host=dockerhost
315
-
```
316
-
317
-
3 - Re-build the containers `docker-compose build workspace php-fpm`
290
+
2 - Re-build the containers `docker-compose build workspace php-fpm`
318
291
319
292
For information on how to configure xDebug with your IDE and work it out, check this [Repository](https://github.com/LarryEitel/laravel-laradock-phpstorm) or follow up on the next section if you use linux and PhpStorm.
0 commit comments