Skip to content

Could not connect to debugging client when running bin/magento commands

I’m using Magento 2.4.1, PHP 7.4, and xdebug 3.0.4. The xdebug is working normally with this setting in php.ini:

enter image description here

But whenever I run bin/magento setup:upgrade or any others bin/magento command I always see this even though it is not affecting the function but its annoying:

Xdebug: [Step Debug] Could not connect to debugging client. Tried: 127.0.0.1:9003 (through xdebug.client_host/xdebug.client_port)

enter image description here