View Issue Details

IDProjectCategoryView StatusLast Update
0002067XdebugStep Debuggingpublic2022-02-25 14:52
Reportermakoki Assigned Toderick  
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.1.2 
Summary0002067: xdebug.start_with_request writes a log when there's no client listen to it
Description

I have setup my xdebug with:

xdebug.mode=debug
xdebug.start_with_request=yes

And is working as espected, using visual studio code as my editor. However, I noticed that everytime I do a arequest to my project, when there's no client listen to xdebug, I got this error into my error_log:

[Wed Feb 23 17:00:22.132321 2022] [proxy_fcgi:error] [pid 1280:tid 123145462165504] [client 127.0.0.1:53773] AH01071: Got error 'PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9000 (through xdebug.client_host/xdebug.client_port) :-('

I don't think this is an error, the client isn't listening to the Xdebug, because I'm not in debugging phase. I think it could be better that xdebug writes to error_log only when there's a real error.

Is there a way to improve this behaviour?... Maybe there's a better settings and / or visual studio code configuration?.

Thanks in advice.

Steps To Reproduce

Set the xdebug configuration as I've told before, and look at your error_log file of your apps. It should appear anytime you make a request.

TagsNo tags attached.
Operating SystemmacOS Catalina (v 10.15.7)
PHP Version7.4.0-7.4.4

Activities

derick

2022-02-25 14:52

administrator   ~0006221

This is not a bug, and expected behaviour.

If you don't want to see the "Can't connect message", then don't instruct Xdebug to connect. Alternatively, you can set up an Xdebug Log file to redirect it away from your standard PHP error log.

Issue History

Date Modified Username Field Change
2022-02-23 16:32 makoki New Issue
2022-02-25 14:52 derick Assigned To => derick
2022-02-25 14:52 derick Status new => resolved
2022-02-25 14:52 derick Resolution open => no change required
2022-02-25 14:52 derick Note Added: 0006221