日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

xdebug 远程调试

發(fā)布時(shí)間:2024/9/20 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 xdebug 远程调试 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

?

?

----------------------------------------------------

下面的鏈接下載對應(yīng)版本的xdebug.

https://xdebug.org/download/historical

?

?

?

?

源碼安裝:https://xdebug.org/docs/install#linux

?

Installation From Source

Obtain

You?can?download?the source of the latest?stable?release 3.0.2.

Alternatively you can obtain Xdebug from GIT:

git clone git://github.com/xdebug/xdebug.git

This will checkout the latest development version which is currently 3.1.0-dev. This development branch might not always work as expected, and may have bugs.

You can also browse the source on GitHub at?https://github.com/xdebug/xdebug.

Compile

There is a?wizard?available that provides you with the correct file to download, and which paths to use.

You compile Xdebug separately from the rest of PHP. You need access to the scripts?phpize?and?php-config. If your system does not have?phpize?and?php-config, you will need to install the PHP development headers.

Debian users can do that with:

apt-get install php-dev

And RedHat and Fedora users with:

yum install php-devel

It is important that the source version matches the installed version as there are slight, but important, differences between PHP versions. Once you have access to?phpizeand?php-config, take the following steps:

?

  • Unpack the tarball:

    tar -xzf xdebug-3.0.2.tgz

    You should?not?unpack the tarball inside the PHP source code tree. Xdebug is compiled separately, all by itself, as stated above.

  • cd xdebug-3.0.2

  • phpize (這一步,用對應(yīng)版本的phpize , 如:/opt/PHP-5.6/bin/phpize)

    If phpize is not in your path, please make sure that it is by expanding the?PATHenvironment variable. Make sure you use the phpize that belongs to the PHP version that you want to use Xdebug with. See?this FAQ entry?if you're having some issues with finding which phpize to use.

  • ./configure --enable-xdebug

  • make

  • make install

  • Configure PHP

  • Add the following line to?php.ini:

    zend_extension=/wherever/you/put/it/xdebug

  •   

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    zend_extension = /opt/PHP-5.6/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so

    ?

    xdebug.remote_enable=1

    ?

    xdebug.remote_autostart = 1 ;這個(gè)配置是比較重要的一個(gè)配置

    ?

    xdebug.remote_port=9013

    xdebug.remote_log="/xdebug-log"

    ?

    xdebug.remote_host="192.168.123.41"?;遠(yuǎn)程調(diào)試的ip地址,即你自己的本機(jī)ip

      

    來源:https://www.cnblogs.com/oxspirt/p/14246986.html

    總結(jié)

    以上是生活随笔為你收集整理的xdebug 远程调试的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。