Xdebug interrupts the running of PHP script

落花浮王杯 提交于 2019-12-13 04:35:03

问题


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"

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.

Any ideas?


回答1:


500 (Internal Server Error) in phpstorm 9.0 when enabling xdebug breakpoints.

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.



来源:https://stackoverflow.com/questions/18579929/xdebug-interrupts-the-running-of-php-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!