Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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
                @andrzej1_1 Thanks! This solved the slow resolving and enabled me to keep Xdebug running the way I wanted it to.
– Pascalculator
                Nov 16, 2014 at 14:19
                @andrzej1_1 Worked for me too. Been looking all over the place for a fix for this. Thanks.
– Martyn Shutt
                May 16, 2015 at 9:40
                And if you need to debug PHP code (using XDebug), how do you start it (without re-editing the php.ini file)?
– Bliss
                Dec 29, 2020 at 13:56
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.