Xdebug 3 doesn't stop on breakpoints


I setted Xdebug extension and it’s installed, I can see it on phpinfo() but it doesn’t stop on the breakpoints and it doesn’t write anything into xdebug.log file.

This is php.ini contents:

zend_extension = C:\xampp\php\ext\php_xdebug-3.0.4-7.4-vc15-x86_64.dll
xdebug.mode = debug
xdebug.start_with_request = no
xdebug.client_port = 9003 
xdebug.client_host = ""
xdebug.log = "C:\xampp\tmp\xdebug\xdebug.log"
xdebug.idekey = VSCODE

And this is launch.json from VSCode:

    // Use IntelliSense para saber los atributos posibles.
    // Mantenga el puntero para ver las descripciones de los existentes atributos.
    // Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9003
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 0,
            "runtimeArgs": [
            "env": {
                "XDEBUG_MODE": "debug,develop",
                "XDEBUG_CONFIG": "client_port=${port}"
            "name": "Launch Built-in web server",
            "type": "php",
            "request": "launch",
            "runtimeArgs": [
            "program": "",
            "cwd": "${workspaceRoot}",
            "port": 9003,
            "serverReadyAction": {
                "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
                "uriFormat": "http://localhost:%s",
                "action": "openExternally"


You don’t say which of your three configurations you’re using, but if you’re using first the "Listen for Xdebug" one, then Xdebug won’t attempt anything because you have xdebug.start_with_request = no in php.ini.

Set it to either trigger and use a browser extension, or yes to have Xdebug always initiate the request. Please refer to the documentation for more information.

The log is empty, because Xdebug never even attempted to make a connection to the VS Code plugin.

Answered By – Derick

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published