AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Phpstorm dockerfile11/26/2022 ![]() In the browser, it does not matter whether you use extension or prescribe XDEBUG_SESSION_START, it is necessary to specify myidekey without a port! In the settings of the storm indicated that for debugging it is necessary to listen to port 9002. ![]() In this window, the proxy port 9001, the host of the proxy localhost. Ssh -R 9002 localhost:9002 -L 9001 localhost:9001Īnd most importantly - when you register your idekey through the storm in the field idekey should write myidekey:9002 So it is necessary to shoot back 9001 the port to register your idekey in the proxy. Each developer chooses a unique port and bind it via ssh to the server. If he is on the same server that php xdebug settings are the same. When a lot of developers, I use a modified dbgp proxy. In the simplest case, when the developer one and the server is behind a NAT, it is necessary for the server to let the port through ssh.Īt the same time in php.xdebug ini should be set to connect to localhost:9000. "Waiting for incoming connection with ide key 'PHPSTORM". In the docker file to "php container" installing xdebug:Įcho "error_reporting=E_ALL" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \Įcho "display_startup_errors=On" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \Įcho "display_errors=On" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \Įcho "xdebug.remote_connect_back=0" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \Įcho "xdebug.remote_enable=1" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \Įcho "xdebug.remote_autostart=1" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \Įcho "xdebug.idekey=PHPSTORM" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \Įcho "xdebug.remote_host=10.0.75.1" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \Įcho "xdebug.remote_port=9001" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ ![]() And rested in the configuration of the whole matter. There is a need to debug PHP code in PhpStorm. Windows 10 to launch applications using Docker ("Docker for Windows"). The second day I suffer with setting Xdebug'a. ![]()
0 Comments
Read More
Leave a Reply. |