LoginSignup
1
0

More than 5 years have passed since last update.

【PHP】Eclipse4.8 デバッグに失敗したときの対処法

Last updated at Posted at 2018-08-23

PHPのEclipse4.8でWebアプリケーションでデバッグが失敗する

PHPのEclipse4.8でWebアプリケーションでデバッグを行うとエラーがでる
image.png
image.png

対処法

ウィンドウ(W) → 設定(P) で設定を表示する
image.png
image.png

PHP → サーバー を選択する
image.png
Default PHP Web Serverを選択し、編集をクリックする
image.png
デバッガーのタブを選択し、デバッガーを「Xdebug」を選択する
image.png

サーバーのタブに戻り、ベースURLに半角コロンを追加し、完了を押下
image.png

起動

対処法の処理を行った後に起動したいファイルを右クリックし、
デバッグ → PHP Web アプリケーション
でデバッグを開始できます
image.png
image.png



上のやり方で失敗する

その場合は起動したいプロジェクトを右クリックし、プロパティを開いてください
PHP → デバッグ でPHPサーバーをDefault PHP Web Serverに設定すればデバッグが行えると思います
image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0