vscode-phpunit icon indicating copy to clipboard operation
vscode-phpunit copied to clipboard

phpunit.debuggerConfig not working

Open dp-anto opened this issue 7 months ago • 0 comments

I've set the option in the following way "phpunit.debuggerConfig": "XDebug" but when I try to debug a test I get:

'launch.json' does not exist for passed workspace folder.

But under .vscode I correctly have the file launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name":"XDebug",
            "type": "php",
            "request": "launch",
			"port": 9063,
			"stopOnEntry": true,
			"log": false,
			"ignore": [
				"**/vendor/**/*.php",
				"/usr/share/**/*.php"
			]
        }
   ]
}

here are the other configurations for the extension:

    "phpunit.paths": {
        "/home/www/": "/var/www/"
    },
  "phpunit.command": "ssh -i ~/.ssh/id_rsa root@localhost",
  "phpunit.phpunit": "/var/www/vendor/bin/phpunit",
  "phpunit.args": [
      
        
      "--configuration",
      "/var/www/test_unit/phpunit.xml",
      "--stderr"
  ],
  "phpunit.environment": {},
  "phpunit.xdebugPort": 9063,
  "phpunit.debuggerConfig": "XDebug",

Currently I have installed 3.7.10

dp-anto avatar Jul 23 '25 11:07 dp-anto