Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update xdebug modes when xdebug is enabled #313

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

anthony-malkoun
Copy link
Contributor

Motivation

The default configuration in Lagoon images when xdebug is enabled is to only enable the debug mode. This PR also enables the profile mode which will allow a tool such as QCacheGrind (brew install qcachegrind on Mac) to analyse and display cachegrind files to identify performance and resource hotspots.

Changes

  1. Update [xdebug] PHP config to enable debug and profile modes.

Note this change only alters what xdebug does if it is enabled.

@nicksantamaria
Copy link
Contributor

@anthony-malkoun just want to confirm that this schabge won't enable xdebug in prod?

@anthony-malkoun
Copy link
Contributor Author

anthony-malkoun commented Oct 3, 2024

@anthony-malkoun just want to confirm that this schabge won't enable xdebug in prod?

@nicksantamaria no this only schabges what modes are turned on when xdebug is enabled. xdebug config has no effect if xdebug_enable is false.

@anthony-malkoun anthony-malkoun merged commit 7cba530 into 6.x Oct 3, 2024
1 check passed
@anthony-malkoun anthony-malkoun deleted the feature/DDS-1476-enable-xdebug-profiling branch October 3, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants