• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Xdebug stopped working after update to 3.2.0

Jayfin3

New Pleskian
Server operating system version
Ubuntu 20.04.5 LTS
Plesk version and microupdate number
18.0.49
Hello everyone,

after a recent update from Xdebug 3.1.5 to 3.2.0 and PHP 8.1.13 to 8.1.14 Xdebug has stopped working. We didn't change the configuration at all, which also still looks perfectly fine in the output of phpinfo()

For troubleshooting purposes, I set the following:

xdebug.log=/tmp/xdebug.log
xdebug.mode=profile
xdebug.start_with_request=yes

These adjustments are shown in phpinfo() and for every request, there's a new set of lines in the log (only "log opened" and "log closed", no helpful output). But there's no cachegrind.out file being created and there's nothing about that in the log.

When setting xdebug.mode=debug there's no connection being established. This worked fine before the update.

Can you give me any hints on how to make it work again?
 
Ok, I think I found the issue: I previously set xdebug.mode in /opt/plesk/php/8.1/etc/php-fpm.d/<domain>.conf using the UI. The result looks like this:

php_value[xdebug.mode] = develop,debug,profile

This worked with PHP 8.1.13 + Xdebug 3.1.5, but stoped working now. Setting xdebug.mode in php.ini works. The downside is obvious: Profiling and debugging is enabled for all domains.

Is there still a way to achieve this?
 
Hello.

Thanks for the tip, I was able to solve the problem!

I have exactly the same problem.

Fedora 37, php 8.2 + xdebug 3.2.0 from remi repo.

When switching to 8.0 from 7.0, I solved it by downgrade XDebug to 3.1.5.

In 8.2 XDebug 3.1.5 is not supported.

I have everything commented out in php.d/15-xdebug.ini. To enable XDebug, I use a separate systemd service where xdebug.so is added
Code:
/usr/sbin/php-fpm --nodaemonize -d "zend_extension=xdebug.so" -y /etc/php-fpm-xdebug.conf

For XDebug 3.2.0, I had to write in php.d/15-xdebug.ini
Code:
xdebug.mode = develop,debug,gcstats,profile,trace

After that everything worked!

Due to the fact that it does not respond to php_value[xdebug.mode], I lose the ability to configure pools differently.

Fortunately, the rest of the settings through php_value[xdebug.*] work.
 
Nice! How are you using that separate systemd service? Did you register it as a PHP handler in Plesk? Are you using it in addition to the default service or instead of it?
 
I don't use Plesk.

I ran into a similar issue on Fedora 37.

Enabled XDebug, even when not used, gives an overhead.

When developing, it is important that the sandbox works as fast as production!

Therefore, only when XDebug is needed, cookies switch to the desired php-fpm pool where XDebug is enabled.
 
Back
Top