在phpMyAdmin上禁用xDebug [英] Disable xDebug on phpMyAdmin

查看:194
本文介绍了在phpMyAdmin上禁用xDebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是第一次使用xDebug.一切正常,但是当我想继续localhost/phpmyadmin时,它想开始调试(这里没有断点).

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).

如何仅对phpmyadmin禁用它?

How can I disable it only for phpmyadmin?

我的配置:

[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"

我正在使用XAMPP,PhpStorm.

I am using XAMPP, PhpStorm.

推荐答案

您只需转到Run > Stop Listening for PHP Debug Connections即可关闭调试连接侦听器.

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

然后,PHPStorm将忽略来自Xdebug的任何连接.如果您想再次调试某些东西,只需转到Run > Start 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:

  • 转到首选项
  • 转到语言和框架> PHP>调试>跳过的路径
  • 点击"+"号打开浏览对话框
  • 浏览到phpmyadmin文件夹所在的Web根目录,然后选择该文件夹
  • 单击确定"并退出首选项
  • 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.

这篇关于在phpMyAdmin上禁用xDebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆