Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rionaoki's avatar

Sail and Xdebug

I created a new project with Laravel Sail and WSL2 on Windows 10. Installation went rather smoothly, but every time I run some commands within Sail, I get the following message.

Xdebug: [Config] Invalid mode 'false' set for 'XDEBUG_MODE' environment variable, fall back to 'xdebug.mode' configuration setting (See: https://xdebug.org/docs/errors#CFG-C-ENVMODE)

e.g.

$ ./vendor/bin/sail php -v
Xdebug: [Config] Invalid mode 'false' set for 'XDEBUG_MODE' environment variable, fall back to 'xdebug.mode' configuration setting (See: https://xdebug.org/docs/errors#CFG-C-ENVMODE)
PHP 8.0.9 (cli) (built: Jul 30 2021 13:04:16) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.9, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.9, Copyright (c), by Zend Technologies
    with Xdebug v3.0.4, Copyright (c) 2002-2021, by Derick Rethans

It seems that it works fine as I am not using Xdebug, but seeing the same message all the time makes me uncomfortable...

0 likes
0 replies

Please or to participate in this conversation.