Search code examples
xamppphpstormxdebug

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.


Solution

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