It's pretty easy to add XDebug to Ubuntu for PHP and HTML5 Development.  Here's a recipe:

First, install XDebug, this assumes you already have a LAMP stack installed with Apache, PHP, MySQL:

  • sudo apt-get install php5-xdebug

This installed the latest version, which is 2.2.3 at this time.  Now update the options in PHP.INI - /etc/php5/apache2/php.ini 

  • # Added for xdebug
    zend_extension="/usr/lib/php5/20121212/xdebug.so"
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000

Restart Apache2, and you are ready to go!

  • sudo service apache2 restart

相关文章:

  • 2022-12-23
  • 2021-11-03
  • 2021-10-14
  • 2022-01-04
  • 2022-01-14
  • 2021-10-12
  • 2021-08-21
  • 2021-09-18
猜你喜欢
  • 2021-06-07
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2021-07-25
  • 2021-08-19
相关资源
相似解决方案