Skip to content

"Proxy read error processing instruction at position 4 is an xml declaration which is only at the start of the document" #1074

@antivanity

Description

@antivanity

Error started when i updated to latest version of VScode 1.106.0, received the following in xdebug log:

Listening on { address: '::', family: 'IPv6', port: 9004 } Registering MYDEBUG on port 9004 with proxy @ me.REDACTED.com:9002 <- launchResponse Response { seq: 0, type: 'response', request_seq: 2, command: 'launch', success: false, message: 'Proxy read error processing instruction at position 4 is an xml declaration which is only at the start of the document', body: { error: { id: 0, format: 'Proxy read error processing instruction at position 4 is an xml declaration which is only at the start of the document', showUser: true } } }

At this point i updated dbgpProxy to the latest version, still same errors.

Heres launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "ME", "type": "php", "request": "launch", "port": 9004, /* DBGp Proxy configuration: */ "proxy": { "enable": true, "host": "me.REDACTED.com", "port": 9002, "key": "MYDEBUG" }, "pathMappings": { "/web/hosts/me.REDACTED.com": "${workspaceFolder}" }, "xdebugSettings": { "max_children": 200, // max number of array or object children to initially retrieve. "max_depth": 7, // maximum depth that the debugger engine may return when sending arrays, hashs or object structures to the IDE. "max_data": 4096 // max length of a string value of an inspected variable. The default value is 1024. So some values can be clipped. }, "log": true } ] }

Heres log output from dbgProxy via command "dbgpProxy -f -i 0.0.0.0:9002 -s 0.0.0.0:9001"
note, i redacted my ip from these logs as 1.1.1.1
Xdebug DBGp proxy (0.6.1) Copyright %s by Derick Rethans 2024 2025-11-18 15:26:23.221 [info] [dbgpProxy] Proxy started 2025-11-18 15:26:23.223 [info] [server] Started server server on 0.0.0.0:9001 2025-11-18 15:26:23.223 [info] [server] Started client server on 0.0.0.0:9002 2025-11-18 15:26:27.468 [info] [server] Start new client connection from 1.1.1.1:50216 2025-11-18 15:26:27.976 [info] [proxyinit] [MYDEBUG] Added connection for IDE Key 'MYDEBUG': 1.1.1.1:9004 2025-11-18 15:26:27.976 [info] [server] Closing client connection from 1.1.1.1:50216

1.38.0 vscode-php-debug plugin version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions