Closed janghwan closed 2 years ago
PHP version: 7.1.11 XDebug version: 2.5.5 Adapter version: 1.11.1
Your launch.json:
{ "version": "0.2.0", "configurations": [ { "name": "Invariants Tests", "type": "php", "request": "launch", "program": "${workspaceRoot}/vendor/phpunit/phpunit/phpunit", "cwd": "${workspaceRoot}", "args": [ "--testsuite", "invariants" ], // TODO use debug console when https://github.com/Microsoft/vscode/issues/17526 is resolved "externalConsole": true, "runtimeArgs": [ "-d", "zend_extension=${config.php.xdebug.extension}", "-d", "xdebug.remote_enable=1", "-d", "xdebug.remote_autostart=1" ], "port": 9000 }, { "name": "Grammar Tests", "type": "php", "request": "launch", "program": "${workspaceRoot}/vendor/phpunit/phpunit/phpunit", "cwd": "${workspaceRoot}", "args": [ "--testsuite", "grammar" ], "externalConsole": true, "runtimeArgs": [ "-d", "zend_extension=${config.php.xdebug.extension}", "-d", "xdebug.remote_enable=1", "-d", "xdebug.remote_autostart=1" ], "port": 9000 }, { "name": "API Tests", "type": "php", "request": "launch", "program": "${workspaceRoot}/vendor/phpunit/phpunit/phpunit", "cwd": "${workspaceRoot}", "args": [ "--testsuite", "api" ], "externalConsole": true, "runtimeArgs": [ "-d", "zend_extension=${config.php.xdebug.extension}", "-d", "xdebug.remote_enable=1", "-d", "xdebug.remote_autostart=1" ], "port": 9000 }, { "name": "Validation Tests", "type": "php", "request": "launch", "program": "${workspaceRoot}/vendor/phpunit/phpunit/phpunit", "cwd": "${workspaceRoot}", "args": [ "--testsuite", "validation" ], "externalConsole": true, "runtimeArgs": [ "-d", "zend_extension=${config.php.xdebug.extension}", "-d", "xdebug.remote_enable=1", "-d", "xdebug.remote_autostart=1" ], "port": 9000 }, { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000 } ] }
XDebug php.ini config:
XDebug logfile (from setting xdebug.remote_log in php.ini): Adapter logfile (from setting "log": true in launch.json):
xdebug.remote_log
"log": true
<- launchResponse Response { seq: 0, type: 'response', request_seq: 2, command: 'launch', success: false, message: 'osascript: /Users/xxx/.vscode/extensions/felixfbecker.php-debug-1.11.1/out/terminalHelper.scpt: No such file or directory\n', body: { error: { id: 0, format: 'osascript: /Users/xxx/.vscode/extensions/felixfbecker.php-debug-1.11.1/out/terminalHelper.scpt: No such file or directory\n', showUser: true } } } -> disconnectRequest { command: 'disconnect', arguments: { restart: false }, type: 'request', seq: 3 } <- disconnectResponse Response { seq: 0, type: 'response', request_seq: 3, command: 'disconnect', success: true }
Code snippet to reproduce:
I just run the task, and got the error. On macOS 10.13.1
Run what task?
all of those in the launch.json causes error. i think it's due to "externalConsole": true
launch.json
"externalConsole": true
Yes, probably externalConsole. Old issue, closeing.
externalConsole
PHP version: 7.1.11 XDebug version: 2.5.5 Adapter version: 1.11.1
Your launch.json:
XDebug php.ini config:
XDebug logfile (from setting
xdebug.remote_log
in php.ini):Adapter logfile (from setting
"log": true
in launch.json):Code snippet to reproduce:
I just run the task, and got the error. On macOS 10.13.1