Skip to content

Full setup for Xdebug and IDEs#8515

Closed
SirLouen wants to merge 1 commit intoWordPress:trunkfrom
SirLouen:patch/49953
Closed

Full setup for Xdebug and IDEs#8515
SirLouen wants to merge 1 commit intoWordPress:trunkfrom
SirLouen:patch/49953

Conversation

@SirLouen
Copy link
Member

This is a follow-up to this topic in 2025

Now that we are using XDebug 3, the original patches were deprecated.
https://xdebug.org/docs/upgrade_guide

Now the issues that @pento was raising have been resolved since no remote_enable is needed anymore and the integration, is mostly straight forward.

I'm submitting a new patch to enable the setup of Xdebug by default without requiring people to touch this file that is not ignored by .git by default. But Xdebug is not enabled by default since both LOCAL_PHP_XDEBUG=true and LOCAL_PHP_XDEBUG_MODE=debug are required for Xdebug to work, so in this regard, the user is "safe" by deafult.

But having to manually untrack the tools/local-env/php-config.ini file (in a development build, which theoretically Xdebug should be an staple for all developers), doesn't make any sense to me.

Pinging @desrosj as he introduced the latest changes in Xdebug .env. variables
@johnbillion and @whyisjake as they touch this report back in the day.
Maybe it never progressed because of the concerns that @pento raised that are not valid any more.

Trac ticket: https://core.trac.wordpress.org/ticket/49953


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props sirlouen.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 60056
GitHub commit: 9a2cf6a

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions bot closed this Mar 19, 2025
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.

1 participant