Question Can't use XDebug in newest plesk?

nelteren

New Pleskian
Server operating system version
Debian 13.5
Plesk version and microupdate number
18.0.78.4
I'm trying to profile a site to track a memory leak. It's only profiling php-cli. I can't get it to run.
I'm using the 'Additional directives' box. I've got plesk-php84-xdebug installed (/opt/plesk/php/8.4/lib/php/modules/xdebug.so exists). I know it can work, because it works for background tasks.

PHP is set to be served as 'FPM application served by nginx', using plesk's repository's php-8.4 version.

If I remove the ' start_with_request' thing and refresh the page a bunch, I do get a bunch of profiles... but those are from background tasks. It never profiles the html page.
If I uncomment the start_with_request lines (and add ?XDEBUG_TRIGGER=profileMe to the GET params), then I don't get any profiles at all (because I'm filtering those background tasks out to get past the noise).

How do I get it to load the extension not just when running some background thing (wp_cli) but also when a I send a request from my browser with the correct GET/POST/COOKIE to enable profiling?

The below doesn't work.

Code:
zend_extension=/opt/plesk/php/8.4/lib/php/modules/xdebug.so
xdebug.output_dir=/var/www/vhosts/system/mysite.com/profiles
xdebug.mode=profile
xdebug.start_with_request=trigger
xdebug.trigger_value=profileMe
 
I tried other directories as well, making (and chown'ing) a directory named /var/www/vhosts/mysite.com/profiles also does not work with profiling via browser request.
 
Back
Top