Skip to content

crash when "variables" panel is folded and executing code in the console #975

Open
@CyrilLeblanc

Description

@CyrilLeblanc

PHP version: 8.1.20
Xdebug version: 3.3.2
VS Code extension version: 1.35.0

Your launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "XDebug - localhost",
      "type": "php",
      "request": "launch",
      "port": 9003,
      "pathMappings": {
        "/var/www/html": "${workspaceFolder}"
      },
      "skipFiles": [
        "**/generated/**",
        "**/vendor/magento/framework/Interception/PluginList/PluginList.php",
        "**/vendor/magento/framework/Config/Scope.php"
      ],
      "log": true
    }
  ]
}

Xdebug php.ini config:

[xdebug]
xdebug.mode=debug,develop
xdebug.start_with_request=yes
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.log_level=0

Xdebug logfile (from setting xdebug.log in php.ini):
VS Code extension logfile (from setting "log": true in launch.json): I don't find any log related to xdebug in exthost.log

Code snippet to reproduce:

$test = "test";
die(); // breakpoint here and enter "$test" in the debug console

The debug console show a connection closed (on close) output message and crash when requesting a known variable name when the debugging session is started with the "variables" panel folded

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions