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

Add "xdebug.start_with_request=yes" ini override #750

Closed
wants to merge 1 commit into from

Conversation

emilh91
Copy link

@emilh91 emilh91 commented Nov 10, 2024

… to enable enable "trigger-less" step debugging in IDE's.

The benefit of this is that developers do NOT need to add anything extra to the query params (e.g. ?XDEBUG_TRIGGER=foo) or POST body or COOKIES, to activate step debugging. As long as the debugger is listening and a breakpoint is hit, execution will be paused.


Here is a sample VS Code debug configuration (auto-generated, except for the pathMappings):

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "pathMappings": {
                "/var/www/html": "${workspaceFolder}"
            },
            "port": 9003
        }
    ]
}

And here is a screenshot of what it looks like:
Screenshot 2024-11-09 at 10 20 32 PM

@taylorotwell
Copy link
Member

Going to hold off on this one for now.

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.

2 participants