hazuki3417/php-selen

よく使う処理をまとめたパッケージ


License
MIT

Documentation

php-selen

license example workflow packagest tag php-version

Debug

Docker + xdebug + VS Code でステップ実行によるデバッグ環境を構築。 デバッグの手順を以下に記載する。

デバッグの準備

  1. .vscode/launch.json ファイルに以下の記述をconfigurationsに追加
{
    "name": "php-xdebug",
    "type": "php",
    "request": "launch",
    "port": 9003,
    "pathMappings": {
        "/var/www/html/": "${workspaceRoot}"
    }
}
  1. デバッグ用コンテナを起動
docker-compose up -d php-xdebug

デバッグの手順

  1. ブレークポイント設定

  2. デバッグ実行

  3. スクリプト実行

docker-compose exec php-xdebug php examples/index.php

Document