Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CyrilLeblanc opened this issue Oct 9, 2024 · 1 comment

Comments

@CyrilLeblanc
Copy link

CyrilLeblanc commented Oct 9, 2024

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
Copy link
Contributor

zobo commented Oct 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants