Setup xdebug¶
In order to setup xdebug you need to:
- Set XDEBUG_ENABLED variable to "enable"
- Stop and start containers:
1 2 |
|
You need to configure your code editor to use debugging. Find an example with VSCode below.
Point your browser to the desired url using XDEBUG_SESSION_START query parameter like this:
http://127.0.0.1:10080??XDEBUG_SESSION_START=anything
Xdebug setup with VSCode¶
You need to edit your launch.json like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Then, you can Start Debugging