Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save krasnikovdev/63dfa56e3854eb63742fde408fd2243c to your computer and use it in GitHub Desktop.
Save krasnikovdev/63dfa56e3854eb63742fde408fd2243c to your computer and use it in GitHub Desktop.
laradock + xdebug + phpstorm
change laradock xdebug.ini
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.cli_color=0
xdebug.profiler_enable=0
xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling"
xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.var_display_max_depth=-1
---------------------------------------
change laradock .env
WORKSPACE_INSTALL_XDEBUG=true
WORKSPACE_SSH_PORT=2221
WORKSPACE_INSTALL_WORKSPACE_SSH=true
PHP_FPM_INSTALL_XDEBUG=true
---------------------------------------
start docker
docker-compose up -d --build nginx mysql workspace
---------------------------------------
config phpstorm:
deployment
Settings -> Build, Execution, Deployment -> Deployment
Name: Laradock
Type: SFTP
SFTP Host: localhost
Root Path: /var/www
User name: root
Auth type: OpenSSH
Private key file: <laradock dir>/workspace/insecure_id_rsa
PHP
Settings -> Languages & Frameworks -> PHP
PHP language level 7.2
CLI Interpreter ... :
Name: Laradock
Remote: Deployment configuration
Deployment configuration: Laradock
PHP Executable: /usr/bin/php7.2
DEBUG
Settings -> Languages & Frameworks -> PHP -> Debug -> DBGp proxy
IDE key: PHPSTORM
PORT: 9000
Host: localhost
Run-> Edit Configurations
Add: PHP Web Aplication
Server: Laradock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment