{"id":43734051,"url":"https://github.com/jami/xdebug-cli","last_synced_at":"2026-02-05T10:35:49.989Z","repository":{"id":141755303,"uuid":"127205918","full_name":"jami/xdebug-cli","owner":"jami","description":"🔧 xdebug-cli is a command line tool to debug PHP applications via xdebug dbgp","archived":false,"fork":false,"pushed_at":"2018-05-31T11:30:13.000Z","size":828,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T15:02:38.722Z","etag":null,"topics":["cli","golang","php","xdbg","xdebug"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jami.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-03-28T22:30:07.000Z","updated_at":"2024-04-24T07:39:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b41c903a-f26d-46cc-9fd6-523796aaeb96","html_url":"https://github.com/jami/xdebug-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jami/xdebug-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jami%2Fxdebug-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jami%2Fxdebug-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jami%2Fxdebug-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jami%2Fxdebug-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jami","download_url":"https://codeload.github.com/jami/xdebug-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jami%2Fxdebug-cli/sbom","scorecard":{"id":504464,"data":{"date":"2025-08-11","repo":{"name":"github.com/jami/xdebug-cli","commit":"5ac615fdd77269db04226116e478c135ac5c7272"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating ubuntu:17.10 to ubuntu:17.10@sha256:3b811ac794645dfaa47408f4333ac6e433858ff16908965c68f63d5d315acf94","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T22:56:42.738Z","repository_id":141755303,"created_at":"2025-08-19T22:56:42.738Z","updated_at":"2025-08-19T22:56:42.738Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29119232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T09:40:36.738Z","status":"ssl_error","status_checked_at":"2026-02-05T09:36:49.977Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","golang","php","xdbg","xdebug"],"created_at":"2026-02-05T10:35:47.765Z","updated_at":"2026-02-05T10:35:49.984Z","avatar_url":"https://github.com/jami.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XDebug CLI\n\n[![Build Status](https://travis-ci.org/jami/xdebug-cli.svg?branch=master)](https://travis-ci.org/jami/xdebug-cli.svg?branch=master)\n[![Taylor Swift](https://img.shields.io/badge/secured%20by-taylor%20swift-brightgreen.svg)](https://twitter.com/SwiftOnSecurity)\n[![Volkswagen](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)\n\n## What?\n\nXDebug-cli or xdbg is a cli xdebug client. The debugging flow is gdb oriented.\n\n## UseCase\n\nYou can use xdebug-cli like any other PHP debugger. You specify a host and a port where xdebug dbgp can connect to. If then a PHP script is executed a xdebug-cli debug session is created and you can interact via CLI.\n\n## Demo\n\n![gif](./demo_wt.gif)\n\n## Build\n\nBuild xdebug-cli local\n\n    make build/local\n\nBuild xdebug-cli release\n\n    make build/release\n\nBuild docker example\n\n    make build/docker\n\n## Testing\n\nTest all suites\n\n    make test\n\n## Help\n\nShow some helpful informations\n\n    xdbg help\n\n## Modes\n\n### Mode listen\n\nThe listening mode is the most common case. xdebug-cli creates a server socket and waits for incomming xdebug dbgp sessions. Default host is 127.0.0.1 and default port is 9000\n\n    xdbg listen\n\n### Mode run\n\nThe run mode is a more compact form which is dedicated to run PHP CLI scripts with a attached debug session.\n\n    xdbg run -h 127.0.0.1 -p 9000 -- php ./app/mycli.php --some=\"longopts\" -f -l -a -g -s\n\n## Session commands\n\n### run\n\nRun the application until the next breakpoint.\n\n### break\n\nYou can set breakpoints on files\n\n    // break on myfile.php in line 100\n    (xgdb) break myfile.php:100\n    // break on the current file in line 100\n    (xgdb) break :100\n\nConditionals can be added to the breakpoint definition\n\n    // e.g. for ($i = 0; $i \u003c 100; $i++) {}\n    // break on myfile.php in line 100 if $i equals 10\n    (xgdb) break myfile.php:100 $i==10\n\n### step\n\nStep into the next instruction\n\n    (xgdb) step\n\n### next\n\nStep over the next instruction\n\n    (xgdb) next\n\n### print\n\nPrints information about a variable\n\n    (xgdb) print $_SERVER\n\n### context\n\nPrint properties in a given context at a given stack depth\n\n* local\n* global\n* constant\n\n\n    (xgdb) context local\n\n### finish\n\nClose the current debug session\n\n    (xgdb) finish\n\n### info\n\nShows several debug session informations\n\n#### breakpoints\n\nShow a list with all breakpoints that are set\n\n    (xgdb) info breakpoints\n\n## Example\n\nListening mode\n\n    xdbg listen -h 127.0.0.1 -p 9000\n\nRun mode\n\n    xdbg run -- php _examples/test.php\n  \nHot pluging xdebug lib and some options\n\n    php -d zend_extension=xdebug.so -d xdebug.remote_host=127.0.0.1 -d xdebug.remote_port=9000 test.php\n\nBuild and run\n\n    make \u0026\u0026 ./bin/xdbg run -- php _example/test.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjami%2Fxdebug-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjami%2Fxdebug-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjami%2Fxdebug-cli/lists"}