Xdebug中断了PHP脚本的运行 [英] Xdebug interrupts the running of PHP script
问题描述
我正在使用Netbeans 7.3和xDebugon WAMP.这是我对xDebugin php.ini的配置:
I'm using Netbeans 7.3 and xDebugon WAMP. Here is my configuration of xDebugin php.ini:
zend_extension = "c:/wamp/bin/php/php5.4.3/ext/php_xdebug-2.2.3-5.4-vc9.dll"
[xdebug]
xdebug.remote_enable = on
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
如果我在ajax脚本上放置了一个断点,它将在该断点处停止.如果我与F8一行一行地移到脚本的末尾,结果是"500 Internal Server Error".没有断点,一切都很好.我什至在Yii的控制器操作中遇到此错误.如果我逐行处理断点,则在浏览器中会出现500错误.没有断点,它可以正常工作.我尝试了其他版本的xDebug,它是相同的.
If I put a break point on my ajax script, it stops on the break point. If I go line by line with F8 to the end of the script, I get "500 Internal Server Error" as a result. Without the break point, everything is OK. I even get this error on my controller action in Yii. If I go with break point line by line, I get 500 error in the browser. Without the break point, it's working fine. I tried with other versions of xDebug, it's the same.
有什么想法吗?
推荐答案
500(内部服务器错误).
500 (Internal Server Error) in phpstorm 9.0 when enabling xdebug breakpoints.
验证您的PHP会话.发生错误时会在执行php代码时产生错误.当您禁用xdebug侦听或纠正/删除问题时,错误会消失.
Validate your whatches for php session. Errors in whatches can generate errors in executing php code. Errors disapears when you disable xdebug listening or correct/remove whatches.
这篇关于Xdebug中断了PHP脚本的运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!