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

export XDEBUG_SESSION="PHPSTORM" doesn't initiate listening in PhpStorm #238

Open
gitressa opened this issue Apr 11, 2023 · 0 comments
Open

Comments

@gitressa
Copy link
Contributor

  • Ubuntu 20.04
  • Lando v3.14.0
  • Drupal 10

Using Lando + PhpStorm + Xdebug, Manual initiation with https://drupal10.lndo.site?XDEBUG_SESSION_START=lando works well, and PhpStorm grabs focus, showing me the variables at the break point.

But I am also trying to initiate PhpStorm and Xdebug from the CLI, but can't make this method work:

export XDEBUG_SESSION="PHPSTORM"

I added this in index.php and verified that xdebug.trigger_value isn't set:

xdebug_info();
exit;

The value of the variable does not matter unless you have set up a trigger value with xdebug.trigger_value.

From https://xdebug.org/docs/step_debug#activate-debugger-cmd

.lando.yml

name: drupal10
recipe: drupal10
config:
  webroot: web

services:
  appserver:
    # Difference from? xdebug: true
    xdebug: develop,debug
    overrides:
      environment:
        # Support debugging CLI with XDEBUG.
        PHP_IDE_CONFIG: "serverName=appserver"
@gitressa gitressa added the documentation Improvements or additions to documentation label Apr 11, 2023
@pirog pirog transferred this issue from lando/lando Apr 11, 2023
@pirog pirog added Needs Triage and removed documentation Improvements or additions to documentation labels Apr 11, 2023
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