View Issue Details

IDProjectCategoryView StatusLast Update
0002300XdebugStep Debuggingpublic2024-11-27 15:53
Reporterlenoko Assigned Toderick  
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Summary0002300: How to remove extra logs from debugging in Docker/VSCODE ?
Description

When using it through docker:

[xdebug]
zend_extension=xdebug

xdebug.mode=develop,debug
xdebug.discover_client_host=1
xdebug.client_host = "host.docker.internal"
xdebug.idekey="VSCODE"
xdebug.client_port = 9003
xdebug.start_with_request=yes
xdebug.log='/var/logs/xdebug/xdebug.log'
xdebug.log_level=3
xdebug.connect_timeout_ms=2000

on every action, there are tons of logs outputed in VSCODE>Debug window, like:

<- setBreakpointsResponse
Response {
  seq: 0,
  type: 'response',
  request_seq: 14,
  command: 'setBreakpoints',
  success: true,
  body:
   { breakpoints:
      [ { verified: false,
          line: 645,
          source:
          ...

xd(1) <- breakpoint_remove -i 17 -d 210006
xd(1) -> <?xml version="1.0" encoding="iso-8859-1"?><response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_remove" transaction_id="17"><breakpoint type="line"

a huge amount of logs, and even simple print(whatever) is followed such massive logs pre/after, and it's hard to actually read Debug window there.
how can we disable all those extra logs and only enable logging what's necessary (like it's in nodejs debugger, only executed commands (which are run from the bottom exec line of Vscode>Debug window)

TagsNo tags attached.
Operating System
PHP Version8.3.5-8.3.9

Activities

derick

2024-11-27 15:53

administrator   ~0007088

Hi,

I think this is because you have "log": true in your launch.json configuration. Can you try removing (or commenting out) that line?

cheers,
Derick

Issue History

Date Modified Username Field Change
2024-10-22 17:15 lenoko New Issue
2024-11-27 15:53 derick Assigned To => derick
2024-11-27 15:53 derick Status new => feedback
2024-11-27 15:53 derick Note Added: 0007088