Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling XDebug in XAMPP slows down phpmyadmin

whenever i enable xdebug for debugging my php-projects with the following standard settings, it slows down phpmyadmin on every single action. just opening phpmyadmin takes nearly 10 seconds.

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 = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.remote_port = 9000

EDIT: Trial and Error... this solved the problem

xdebug.remote_host = localhost
like image 838
user3865525 Avatar asked Jul 22 '14 16:07

user3865525


People also ask

Does xdebug slow PHP?

Yes, debuggers like XDebug reduce the performance of the PHP server.

Does xampp come with xdebug?

Xdebug is a powerful open source debugger and profiler for PHP. It is included with XAMPP and can be used to display stack traces, analyze code coverage and profile your PHP code.

What is xdebug Client_host?

client_host = localhost # Configures the IP address or hostname where Xdebug will attempt to connect to when initiating a debugging connection. This address should be the address of the machine where your IDE or debugging client is listening for incoming debugging connections.

What is xdebug Remote_host?

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

In case xdebug.remote_autostart is enabled, disabling it with

xdebug.remote_autostart = 0

did the trick for me.

like image 69
Shreddi Avatar answered Sep 24 '22 17:09

Shreddi