I have a beginners question. I am fighting to get Xdebug to run for PHP in Visual Studio Code. I tried a lot, but nothing seems to work. VSCode doesn't stop at my breakpoints. Here is a list of things I already have tried or setup:
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.idekey="vscode"
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.remote_port = "8066"
zend_extension = C:\xampp\php\ext\php_xdebug-3.0.3-8.0-vs16-x86_64.dll
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 8066,
"runtimeExecutable": "C:/xampp/php/php.exe"
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 8066,
"runtimeExecutable": "C:/xampp/php/php.exe"
What am I doing wrong? I bet it is something very stupid. I hope some of you guys have some advice.
I fixed my problem as followed:
I set the Apache server to another port that is not: 9000 or 9003
After reading the link i understood that a lot of settings where V2. So i changed the xdebug setting to only:
xdebug.remote_autostart = yes
xdebug.mode = debug
zend_extension = C:\xampp\php\ext\php_xdebug-3.0.3-8.0-vs16-x86_64.dll
https://xdebug.org/docs/upgrade_guide
It worked perfectly! Thank you LazyOne!