带php的XDebug(';--enable debug=YES';)
我正在尝试使用XDebug(php模式“./configure”“--with-apxs2=/usr/sbin/apxs”“--enable debug=YES”) 在xdebug的文档中:“如果您自己编译PHP并使用--enable debug,则必须使用zend_extension_debug” 但是,在输出中phpinfo()模块未加载(我也尝试使用zend_扩展) 也许XDebug需要一些模块?带php的XDebug(';--enable debug=YES';),php,debugging,xdebug,Php,Debugging,Xdebug,我正在尝试使用XDebug(php模式“./configure”“--with-apxs2=/usr/sbin/apxs”“--enable debug=YES”) 在xdebug的文档中:“如果您自己编译PHP并使用--enable debug,则必须使用zend_extension_debug” 但是,在输出中phpinfo()模块未加载(我也尝试使用zend_扩展) 也许XDebug需要一些模块? 我加载的模块: [PHP Modules] Core ctype date dom ereg
我加载的模块:
[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
hash
iconv
json
libxml
mcrypt
memorylog
mongo
pcre
PDO
pdo_sqlite
phalcon
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
还有一件事:我有两个php版本的单一mac。 在编译XDebug之前,我使用phpize(5.5.15),但“makeinstall”将扩展复制到不同的路径(/usr/local/lib/php/extension/no-debug-non-zts-20121212/XDebug.so) 但是phpinfo()5.5.15输出不同的扩展目录“/usr/lib/php/extensions/debug-non-zts-20121212”
现在,我将xdebug.so从“/usr/local/lib/php/extension/no-debug-non-zts-20121212/”复制到“/usr/lib/php/extension/debug-non-zts-20121212/”,但不起作用。您可能不再需要这个答案,但无论如何: Xdebug不需要任何其他模块 我的猜测是,在使用--enable debug编译xdebug for php之前,您调用了
phpize
,它来自系统上另一个安装的php。您应该像full\path\to\other\phpize
那样运行它,这样它就可以使用--enable debug为php设置正确的设置
在php.ini中包含enable xdebug的正确方法是zend_extension=“/path/to/xdebug.so”
希望能有帮助
[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
hash
iconv
json
libxml
mcrypt
memorylog
mongo
pcre
PDO
pdo_sqlite
phalcon
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter