D
D
Denis2020-12-24 11:43:15
PHP
Denis, 2020-12-24 11:43:15

Problem with Xdebug in vs code?

Before that, xdebug was used mainly to test functions in test mode. Just added json config to vs code and tested. When the debugger was updated, it began to receive a port error. Changed in the config everything worked. But today in another project I launched scripts. They work but display a message

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

I googled but haven't figured it out yet. Can anyone come across? Tell me how to fix?
If you still run the debuger through breakpoints, then everything works fine.
And if, as an example, through composer, then the script fulfills the norms, but Time-out connecting gets out
$ composer run-script phpunit
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
> phpunit tests
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
PHPUnit 9.4.3 by Sebastian Bergmann and contributors.

......                                                              6 / 6 (100%)

Time: 00:00.233, Memory: 6.00 MB

OK (6 tests, 12 assertions)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question