xdebug / vscode-php-debug

PHP Debug Adapter for Visual Studio Code 🐞⛔
MIT License
779 stars 178 forks source link

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

Open CyrilLeblanc opened 9 hours ago

CyrilLeblanc commented 9 hours ago

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

zobo commented 5 hours ago

Cannot reproduce. See if you can upload the log from debug console for the whole session, image