dtn36013 2012-03-30 15:43
浏览 133

使用Zend Studio和Wampserver进行调试

Recently I rebuilt my laptop running Windows 7 64-bit. Before the rebuild I was running my own individual WAMP stack having installed all the components separately but after the rebuild I decided to try out a pre-built WAMP stack as it allowed me to easily switch between versions of Apache/PHP/MySQL so I settled on Wampserver.

However since I switched I cannot debug with Zend Studio. I have the Zend debug bar installed in Firefox and normally I just set a break point in Zend Studio and within Firefox select a debug option i.e. debug this page, all pages, posts etc. However this now doesn't trigger Zend Studio to enter debug mode and just bypasses everything.

I've added the following to my php.ini file as loaded by Apache (as seen from phpinfo):

[Zend]
zend_extension_ts="C:/Program Files (x86)/Zend/ZendDebugger/5_3_x_nts_comp/ZendDebugger.dll"
zend_debugger.allow_hosts=127.0.0.1/32,192.168.1.64,192.168.1/150
zend_debugger.expose_remotely=always

Also, Wampserver installed Xdebug and I commented out the following lines in php.ini incase there was any conflict:

; XDEBUG Extension

;zend_extension = "c:/wamp/bin/php/php5.3.10/zend_ext/php_xdebug-2.1.2-5.3-vc9-x86_64.dll"

;[xdebug]
;xdebug.remote_enable = off
;xdebug.profiler_enable = off
;xdebug.profiler_enable_trigger = off
;xdebug.profiler_output_name = cachegrind.out.%t.%p
;xdebug.profiler_output_dir = "c:/wamp/tmp"

Would appreciate any advice or pointers in the right direction anyone can give me.

Thanks in advance.

PS. Am running PHP5.3

  • 写回答

1条回答 默认 最新

  • duanph1978 2012-10-03 14:12
    关注

    Switched to Netbeans and using XDebug. Great IDE with very usable debugging.

    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?