{"id":18585325,"url":"https://github.com/tyhopp/php-xdebug-docker","last_synced_at":"2025-07-12T14:34:49.142Z","repository":{"id":217406276,"uuid":"743789461","full_name":"tyhopp/php-xdebug-docker","owner":"tyhopp","description":"Docker/WSL2/VSCode/XDebug breakpoint reproduction","archived":false,"fork":false,"pushed_at":"2024-01-16T01:53:19.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-16T06:08:50.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyhopp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-16T01:51:30.000Z","updated_at":"2024-01-16T01:51:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"682f4ca1-0fdd-4aef-aeb6-0a06cd40f678","html_url":"https://github.com/tyhopp/php-xdebug-docker","commit_stats":null,"previous_names":["tyhopp/php-xdebug-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tyhopp/php-xdebug-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyhopp%2Fphp-xdebug-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyhopp%2Fphp-xdebug-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyhopp%2Fphp-xdebug-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyhopp%2Fphp-xdebug-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyhopp","download_url":"https://codeload.github.com/tyhopp/php-xdebug-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyhopp%2Fphp-xdebug-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265003785,"owners_count":23696284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T00:33:03.276Z","updated_at":"2025-07-12T14:34:49.057Z","avatar_url":"https://github.com/tyhopp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker/WSL2/VSCode/XDebug breakpoint reproduction\n\nIf `\"hostname\": \"0.0.0.0\"` is not set in the VSCode launch configuration, breakpoints are not hit.\n\n## Usage\n\n1. Build with `docker build -t php-xdebug-docker .`\n2. Run in interactive mode with `docker run -it -p 9003:9003 php-xdebug-docker /bin/bash`\n3. Run XDebug launch script in VSCode that looks like this:\n\n```json\n{\n  \"version\": \"0.2.0\",\n  \"configurations\": [\n    {\n      \"name\": \"Listen for Xdebug\",\n      \"type\": \"php\",\n      \"request\": \"launch\",\n      \"port\": 9003,\n      \"pathMappings\": {\n        \"/tmp\": \"${workspaceFolder}\"\n      },\n      \"log\": true\n    }\n  ]\n}\n```\n\n4. Set a breakpoint in `index.php`\n5. From the bash terminal in the container, execute the PHP script with `php /tmp/index.php`\n6. See that breakpoints set in `index.php` are not hit","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyhopp%2Fphp-xdebug-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyhopp%2Fphp-xdebug-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyhopp%2Fphp-xdebug-docker/lists"}