Problem with Xdebug in vsCode

Asked

Viewed 93 times

1

Until yesterday it worked normal, now it is always returning this error in the middle of the process in the debug console:

   XDebugError: command is not available
        at new Response (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:56:19)
        at Connection.<anonymous> (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:611:20)
        at Generator.next (<anonymous>)
        at fulfilled (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:4:58)
        at processTicksAndRejections (internal/process/task_queues.js:94:5) {
      code: 5,
      name: 'XDebugError'
    }
    connection 9: read ECONNRESET
    XDebugError: command is not available
        at new Response (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:56:19)
        at Connection.<anonymous> (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:611:20)
        at Generator.next (<anonymous>)
        at fulfilled (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:4:58)
        at processTicksAndRejections (internal/process/task_queues.js:94:5) {
      code: 5,
      name: 'XDebugError'
    }
    connection 10: read ECONNRESET
    XDebugError: command is not available
        at new Response (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:56:19)
        at Connection.<anonymous> (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:611:20)
        at Generator.next (<anonymous>)
        at fulfilled (/Users/myuser/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:4:58)
        at processTicksAndRejections (internal/process/task_queues.js:94:5) {
      code: 5,
      name: 'XDebugError'
    }
    connection 11: read ECONNRESET

That’s the launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        {
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 9000, 
            "pathMappings": {
                "/Volumes/SDCARD/projects/myproject": "${workspaceRoot}",
            }
        }

    ]
}

On the server looks normal: inserir a descrição da imagem aqui inserir a descrição da imagem aqui

In PHP.ini too:

inserir a descrição da imagem aqui

Then one person said on the forums to put "stopOnEntry": true, no launch.json, and then returned:

Unable to open 'index.php': Unable to read file '/Volumes/SDCARD/projects/myproject/public/index.php' (Error: Unable to resolve non-existing file '/Volumes/SDCARD/projects/myproject/public/index.php')

Then I removed the SD CARD and put it again, and it crashed on the first line of that file index.php, but when I put stopOnEntry to false, it give back that first error in the terminal Xdebugerror..., I wanted it to fall on the line where I marked with the red ball, which is where my request is, and not in the first file where it initializes the framework.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.