![]() & echo "deb stable main" > /etc/apt//yarn.list \ & php -r "readfile('') " | php -install-dir=/usr/bin/ -filename=composer \ Php8.0-redis php8.0-swoole php8.0-xdebug \ Php8.0-msgpack php8.0-igbinary php8.0-ldap \ Php8.0-intl php8.0-readline php8.0-pcov \ Php8.0-imap php8.0-mysql php8.0-mbstring \ & apt-get install -y php8.0-cli php8.0-dev \ & echo "deb hirsute main" > /etc/apt//ppa_ondrej_php.list \ & apt-key adv -homedir ~/.gnupg -keyserver hkp://:80 -recv-keys C300EE8C \ & apt-key adv -homedir ~/.gnupg -keyserver hkp://:80 -recv-keys E5267A6C \ & apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 \ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime & echo $TZ > /etc/timezone This is the Dockerfile that is used: FROM ubuntu:21.04 Is is possible to have the same configs in console and browser via SAIL_XDEBUG_MODE ? Here are screenshots from what I see in the command line:Īs it can be seen in the attached screenshots, in console is used the XDEBUG_MODE env var, while in browser is used xdebug.mode. I have seen that running php -i in container returns different configs for Xdebug comparing to what we see in phpinfo() from browser even if the Configuration file is the same one. However, the debugging is not working in PhpStorm even if it is set to listen for incoming connections. I am using Laravel Sail for running the project inside a container and everything seems to work except the debugging part.Īccording to Laravel docs we can set SAIL_XDEBUG_MODE to enable the debug mode. I have started to play with my first Laravel project on a MacOS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |