View Issue Details

IDProjectCategoryView StatusLast Update
0002301XdebugStep Debuggingpublic2024-11-27 15:40
Reportersfsccn Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSUbuntuOS Version24.04
Product Version3.2.0 
Summary0002301: Feature Request: Add Option to Suppress Error "Could not connect to debugging client"
Description

Hi, I'm using Xdebug for PHP step debugging in VS Code via the extension xdebug.php-debug. My PHP log file is loaded with "Could not connect to debugging client" errors because when I'm not actually running the debugger I get this error on every Apache PHP page load. I could always run the debugger, but it adds a graphical interface to the editor that I'd rather not have there all the time. For now, I've set xdebug.log_level = 0.

Please let me know if there's a better way to handle this.

Otherwise, I suggest adding an option, maybe xdebug.supress_connection_errors = 0/1, that suppresses these errors.

Thanks!

Steps To Reproduce

Load hello.php containing <?php echo "<h1>Hello!</h1> and find error in PHP log.

Additional Information

From phpinfo:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans

TagsNo tags attached.
Operating SystemUbuntu 24.04
PHP Version8.3.5-8.3.9

Relationships

duplicate of 0002067 resolvedderick xdebug.start_with_request writes a log when there's no client listen to it 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-10-23 15:35 sfsccn New Issue
2024-11-27 15:40 derick Relationship added duplicate of 0002067