使用Zend Studio和Wampserver进行调试

时间:2022-07-26 00:36:52

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.

最近我重建了运行Windows 7 64位的笔记本电脑。在重建之前,我正在运行我自己的WAMP堆栈,它已经单独安装了所有组件但是在重建之后我决定尝试预先构建的WAMP堆栈,因为它允许我在Apache / PHP / MySQL版本之间轻松切换所以我解决了在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.

但是,自从我切换后,我无法使用Zend Studio进行调试。我在Firefox中安装了Zend调试栏,通常我只是在Zend Studio中设置一个断点,在Firefox中选择调试选项,即调试此页面,所有页面,帖子等。但是现在这不会触发Zend Studio进入调试模式,只是绕过一切。

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

我已经将以下内容添加到Apache加载的php.ini文件中(从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:

另外,Wampserver安装了Xdebug,我在php.ini中注释掉了以下几行,如果有任何冲突:

; 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

PS。我正在运行PHP5.3

1 个解决方案

#1


0  

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

切换到Netbeans并使用XDebug。伟大的IDE,非常实用的调试。

#1


0  

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

切换到Netbeans并使用XDebug。伟大的IDE,非常实用的调试。