---
title: "xDebug and PHP switch is throwing error in Cloud IDE"
date: "2023-09-29T17:41:13+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/94036-xdebug-and-php-switch-throwing-error-cloud-ide"
id: "734a49f7-53c5-4fbd-a342-e1e1a449f510"
---

**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