drpzr64329 2013-10-28 21:13
浏览 93

zenddebugger没有使用mac osx mavericks for php Aptana

I installed mac osx mavericks. Now I find that it replaced php 5.3 with 5.4 (and removed php.ini plus some other files), and I cannot debug php scripts - I think because ZendDebugger.so is only available up to php 5.3.

In Aptana, I get: 'Error launching PHP Script The debug session could not be started. Please make sure that the debugger is properly configured as a php.ini directive'

php.ini does show: ... zend_extension="/usr/lib/php/extensions/ZendDebugger.so" zend_debugger.expose_remotely=always zend_debugger.connector_port=10000 zend_debugger.allow_hosts=127.0.0.1/32,192.168..,10...* ...

And as ZendDebugger.so had been removed by the mavericks installation, I downloaded it(64-bit) from http://www.zend.com/en/company/community/pdt/downloads and tried placing ZendDebugger.so in /usr/lib/php/extensions/

If I do a 'php -v' I get: Failed loading /usr/lib/php/extensions/ZendDebugger.so: dlopen(/usr/lib/php/extensions/ZendDebugger.so, 9): Symbol not found: _output_globals Referenced from: /usr/lib/php/extensions/ZendDebugger.so Expected in: flat namespace

Because ZendDebugger.so does reside there, I think it must be because it is built for php 5.3 This must also be why Aptana is complaining.

So now, without ZendDebugger.so for php 5.4, I am stuck - or so it seems.

Any insights? Have I missed something? Should I try to go back to php 5.3? Is there a Saas php debugger I can switch to?

Any suggestions are appreciated.

Colin G

  • 写回答

1条回答 默认 最新

  • douzhongju8780 2013-12-04 11:59
    关注

    This thread seems to indicate that zend debugger does not support php5.4 yet. However I'm currently using xdebug with PHP 5.5 and it's working fine. It has all the features of zend debugger, including remote debugging and var dump formatting.

    The maintainer has produced a tool which looks at your phpinfo output and produces personalised installation instructions.

    Here is a recent tutorial on hooking up Aptana to xdebug.

    评论

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?