Problems using Xdebug

66 Views Asked by At

I'm new to using Xdebug. I followed the procedure indicated on the site xdebug.org.

PHP Version 8.0.9. I placed the php_xdebug.dll file in the "ext" folder. Here are the lines I added to my php.ini file:

zend_extension = xdebug
xdebug.mode = debug
xdebug.start_with_request = yes

I then installed the extension in VS Code. I'm using the Edge browser.

Everything works fine when I start listening to Xdebug via my IDE. When I launch my page on the browser, the debugger works fine. However, when I refresh my page without starting Xdebug listening from my IDE, I get this PHP error:

Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port).

How can I solve this problem?

I would like my browser not to call port 9003 if the Xdebug call is not in progress. I've tried modifying this line :

xdebug.start_with_request = trigger

This is rather restrictive because I had to install an Xdebug Chrome extension, which requires me to activate/deactivate Xdebug manually on the browser.

0

There are 0 best solutions below