I have a problem in debugging PHP with VSCode.
Dockerfile EXPOSE port 80
The page I want to debug is really simple:
home.php
<?php
$name = 'AAA';
echo $name; <--- here is the breakpoint
php.ini
xdebug.default_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.remote_enable = 1
xdebug.remote_port = 80
xdebug.idekey = VSCODE
launch.json (XDebug configuration)
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
}
]
}
Debug console doesn't show any error, but it's not stopped at breakpoint once I load the home-page.