Disable xDebug on phpMyAdmin

做~自己de王妃 提交于 2020-02-03 05:16:06

问题


I am using xDebug for a first time. Everything works well, but when I want to go on localhost/phpmyadmin it want to start debug (I don't have breakpoints here).

How can I disable it only for phpmyadmin?

My config:

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = on
xdebug.remote_handler = "dbgp"
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.collect_return="0"

I am using XAMPP, PhpStorm.


回答1:


You can just turn off the debug connection listener by going to Run > Stop Listening for PHP Debug Connections.

PHPStorm will then ignore any connections from Xdebug. When you want to debug something again simply go to Run > Start Listening for PHP Debug Connections and it'll work again.

You could also permanently ignore those files by using Skipped Paths:

  • Go to Preferences
  • Go to Languages & Frameworks > PHP > Debug > Skipped Paths
  • Click the '+' sign to open a browse dialog
  • Browse to the web root where the phpmyadmin folder is located and select that folder
  • Click OK and exit out of preferences

The debugger should now ignore scripts in that directory.



来源:https://stackoverflow.com/questions/38634665/disable-xdebug-on-phpmyadmin

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