You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I might be missing something, but it seems using this via docker doesn't allow me to set xdebug.profiler_out_dir because xdebug is not installed in jokkedk/webgrind. php.ini then never picks up the setting, which is never passed to webgrind, which means I cannot search a subdirectory like /tmp/cachegrind.
I have a WordPress site in Docker which has a mount to from /host/project/cachegrind/ to /tmp/cachegrind/ and I want this same directory mounted from /host/project/cachegrind/ to /tmp/cachegrind in webgrind. This is because otherwise, webgrinds own temporary files will be pushed back to the wordpress' /tmp/cachegrind/ folder. By using the subdirectory, the only files communicated will be the cachegrind files themselves.
I added the configuration by mounting /host/project/conf/webgrind.ini to /usr/local/etc/php/conf.d/webgrind.ini and can confirm that the ini is scanned via docker exec project_webgrind sh -c "php --ini", but docker exec project_webgrind sh -c "php -i | grep xdebug" returns no entries.
This variant I had no problem with used /tmp/xdebug by default which makes more sense to me, and also allowed modifications via environment variables. https://github.com/devgeniem/docker-webgrind
# This is the location where webgrind looks for the xdebug cachegrind files
XDEBUG_OUTPUT_DIR="/tmp/xdebug"
# Here webgrind then stores the temp files after analyzing the results
WEBGRIND_STORAGE_DIR="/tmp/webgrind"
The text was updated successfully, but these errors were encountered:
I might be missing something, but it seems using this via docker doesn't allow me to set
xdebug.profiler_out_dir
because xdebug is not installed injokkedk/webgrind
.php.ini
then never picks up the setting, which is never passed to webgrind, which means I cannot search a subdirectory like/tmp/cachegrind
.I have a WordPress site in Docker which has a mount to from
/host/project/cachegrind/
to/tmp/cachegrind/
and I want this same directory mounted from/host/project/cachegrind/
to/tmp/cachegrind
in webgrind. This is because otherwise, webgrinds own temporary files will be pushed back to the wordpress' /tmp/cachegrind/ folder. By using the subdirectory, the only files communicated will be the cachegrind files themselves.I added the configuration by mounting
/host/project/conf/webgrind.ini
to/usr/local/etc/php/conf.d/webgrind.ini
and can confirm that the ini is scanned viadocker exec project_webgrind sh -c "php --ini"
, butdocker exec project_webgrind sh -c "php -i | grep xdebug"
returns no entries.This variant I had no problem with used
/tmp/xdebug
by default which makes more sense to me, and also allowed modifications via environment variables. https://github.com/devgeniem/docker-webgrindThe text was updated successfully, but these errors were encountered: