Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable xDebug on 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).

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.

like image 520
Juraj Lúdik Avatar asked Jul 28 '16 11:07

Juraj Lúdik


People also ask

How do I disable xdebug in composer?

As of Xdebug 3, it is possible to disable the Xdebug completely by setting the option xdebug. mode to off , or by setting the environment variable XDEBUG_MODE=off . It is very easy to disable Xdebug just for composer, by aliasing composer . You can add the alias to your $HOME/.

What is xdebug Remote_connect_back?

Description. Xdebug is an extension for PHP to assist with debugging and development. It was determined that Xdebug is configured with xdebug. remote_connect_back option enabled as shown in the following example. xdebug.remote_enable= true xdebug.remote_connect_back= true xdebug.remote_host= 127.0.


1 Answers

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.

like image 86
Daniel Waghorn Avatar answered Sep 30 '22 14:09

Daniel Waghorn