Apache/2.4.18 (Ubuntu),
PHP Version 7.0.28-0ubuntu0.16.04.1
: IDE Xdebug
Netbeans https://netbeans.org/downloads/index.html
netbeans-8.2-php-linux-x64.sh
root .
-
PHP:
Xdebug
$ sudo sh ~//netbeans-8.2-php-linux-x64.sh
PHP:
+----------------------------------------------------------------------+
$ sudo apt-get install php7.0-dev $ sudo pecl install xdebug
|
| INSTALLATION INSTRUCTIONS
| =========================
|
| See http://xdebug.org/install.php#configure-php for instructions
| on how to enable Xdebug for PHP.
|
| Documentation is available online as well:
| - A list of all settings: http://xdebug.org/docs-settings.php
| - A list of all functions: http://xdebug.org/docs-functions.php
| - Profiling instructions: http://xdebug.org/docs-profiling2.php
| - Remote debugging: http://xdebug.org/docs-debugger.php
|
|
| NOTE: Please disregard the message
| You should add "extension=xdebug.so" to php.ini
| that is emitted by the PECL installer. This does not work for
| Xdebug.
|
+----------------------------------------------------------------------+
You should add "zend_extension=/usr/lib/php/20151012/xdebug.so" to php.ini
xdebug.so /usr/lib/php/
( )
/etc/php/7.0/apache2/php.ini
[Date]
PHP:
https://2bits.com/articles/setting-up-xdebug-dbgp-for-php-on-debian-ubuntu.html
zend_extension=/usr/lib/php/20151012/xdebug.so [xdebug] xdebug.remote_autostart=off xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9001 xdebug.idekey=netbeans-xdebug
NetBeans. --PHP-
- 9001,
-
PHP:
php echo phpinfo().
$ sudo service apache2 reload
| This program makes use of the Zend Scripting Language Engine: Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans with Zend OPcache v7.0.28-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies |
.
.
