Home >Backend Development >PHP Tutorial >Detailed explanation of mac php netbeans xdebug configuration method_PHP tutorial

Detailed explanation of mac php netbeans xdebug configuration method_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:08:34728browse

This article will give you a detailed introduction to the configuration method of mac php netbeans xdebug. I hope this tutorial will be helpful to all students.

PHP Configuration

/opt/local/var/db/php5/xdebug.ini

The code is as follows
 代码如下 复制代码

zend_extension=/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.remote_handler=dbgp

Copy code

zend_extension=/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so [xdebug] xdebug.remote_enable=1

xdebug.remote_host=localhost

xdebug.remote_port=9000 xdebug.remote_mode=req xdebug.remote_handler=dbgp




1 output_buffering = Off


Restart the server

NetBeans Configuration

command + , – select php tab in the general tag PHP 5 interpreter: /opt/local/bin/php (location of php file) Fill in the debug tag Debugger port: 9000 Session ID: netbeans-xdebug Change other configurations as needed
http://www.bkjia.com/PHPjc/629822.html
www.bkjia.com
truehttp: //www.bkjia.com/PHPjc/629822.htmlTechArticleThis article will give you a detailed introduction to the mac php netbeans xdebug configuration method. I hope this tutorial will be useful to all students. Help. PHP configuration /opt/local/var/db/php5/xdebug.ini code...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn