0
:
How-To & F.A.Q

 

 

PHP7.0+Netbeans8.2+Xdebug2.6

IDE Xdebug
  
: 14
Linux Mint 18.3 64b RU

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:
  1. $ sudo sh ~//netbeans-8.2-php-linux-x64.sh
Xdebug
PHP:
  1. $ sudo apt-get install php7.0-dev
  2. $ 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:
  1. zend_extension=/usr/lib/php/20151012/xdebug.so
  2.  
  3. [xdebug]
  4. xdebug.remote_autostart=off
  5. xdebug.remote_enable=on
  6. xdebug.remote_handler=dbgp
  7. xdebug.remote_mode=req
  8. xdebug.remote_host=localhost
  9. xdebug.remote_port=9001
  10. xdebug.idekey=netbeans-xdebug
  11.  
https://2bits.com/articles/setting-up-xdebug-dbgp-for-php-on-debian-ubuntu.html

NetBeans. --PHP-
- 9001,

-
PHP:
  1. $ sudo service apache2 reload
php echo phpinfo().
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

.

.
,
 
:
, .