Help us understand the problem. What is going on with this article?

XAMPPのPHP7でXdebugを使う

More than 1 year has passed since last update.

XAMPPのPHP7でXdebugを使う場合

  1. XdebugのDLLをダウンロード
    XAMPPのバージョンによっては環境が異なりXdebugのDLLが適用できないものもある。

    1. まずは、XAMPPでApacheを起動させる image.png
    2. phpinfo()でPHPの情報を表示 image.png
    3. 環境にあったXdebug.dllをダウンロード phpinfo()で出力されたソースコード(html)を全部コピー https://xdebug.org/wizard.php のサイトのテキストボックスにコピーしたソースコードを貼り付ける image.png [Analyse my phpinfo() output]ボタンを押す image.png 現在の環境に合ったDLLのファイルがダウンロードできるのでこれをダウンロードする
    4. C:\xampp\php\ext にダウンロードしたDLLを入れる
  2. php.iniを編集 下記を末尾に追記
    ただしphp_xdebug-2.6.0-7.2-vc15.dllはダウンロードしてきたファイル名に変更すること

php.ini
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.6.0-7.2-vc15.dll"
xdebug.remote_autostart = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "c:\xampp\tmp"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_log="c:\xampp\tmp\xdebug.txt"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "c:\xampp\tmp"
xdebug.remote_cookie_expire_time = 36000
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away