---
title: "Xdebug3 can't be triggered on PHP8.x after enabled"
date: "2024-05-23T06:17:56+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/93931-xdebug3-cant-be-triggered-php8x-after-enabled"
id: "b414bf1f-e61b-41c2-a792-3e914bf8064c"
---

Table of contents will be added

Issue
-----

Environment is on PHP8.X, Xdebug3 cannot be triggered after enabling Xdebug by Acquia Support.

Troubleshooting
---------------

Check if Xdebug version is 3, be aware that there will be two versions of Xdebug - version 2 for PHP 7.4, version 3 for PHP 8.0+. Use the below command line to check Xdebug version:

    app@staging-xxxxx:/var/www/html/app.env/docroot/sites/default$ PHPRC=/mnt/www/site-php/<appenv> drush --uri=www.example.com ev "echo phpversion('xdebug');echo PHP_EOL;"
    
    3.0.2

  
Check , if `xdebug.mode i`s on `develop` mode as per the document of \`https://xdebug.org/docs/upgrade\_guide\`, it needs to be set to `debug` mode..

    app@staging-xxxxx /var/www/html/app.env/docroot/sites/default $ php -c /var/www/site-php/<appenv>/php.ini -i |grep xdebug.mode
               Enabled Features<br/>(through 'xdebug.mode' setting)
    xdebug.mode => develop => develop

Resolution
----------

Please raise a ticket to Support team to request that `xdebug.mode` be set to `debug`.