Date Published: September 29, 2023
xDebug and PHP switch is throwing error in Cloud IDE
Issue¶
When changing PHP version or enabling/disabling xDebug in Cloud IDE you may encounter `Failed to copy` error. For example running the following command, it is throwing the error:
$ acli ide:php-version 8.0
In Filesystem.php line 41:
Failed to copy "/home/ide/configs/php/xdebug3.ini" because file does not exist.
Resolution¶
To resolve this issue create a ` xdebug3.ini
` in `/home/ide/configs/php/` and add the following content then try again to switch PHP versions.
; Acquia Hosting XDebug defaults
; This file configures the default settings for xdebug.
[xdebug]
;zend_extension=xdebug.so
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_host=localhost
xdebug.client_port=9001
xdebug.max_nesting_level=2000
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.