Skip to content

Instantly share code, notes, and snippets.

@guanguans
Last active November 18, 2021 10:25
Show Gist options
  • Save guanguans/b8fe05ee062db17b0eea1b889321f408 to your computer and use it in GitHub Desktop.
Save guanguans/b8fe05ee062db17b0eea1b889321f408 to your computer and use it in GitHub Desktop.
xdebug.ini
;laradock
; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini)
; xdebug.remote_host=dockerhost
; xdebug.remote_host=docker.for.mac.localhost 此处有坑,这是以前的写法,现在用下条
xdebug.remote_host=docker.for.mac.host.internal
xdebug.remote_connect_back=0
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.cli_color=1
xdebug.profiler_enable=0
xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling"
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.var_display_max_depth=-1
;dnmp
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = docker.for.mac.localhost
xdebug.remote_autostart = on
xdebug.remote_port = 9000
xdebug.remote_log = "/var/log/nginx/php.xdebug.log"
[XDebug]
; Debug Config 最少配置、docker里面注意remote_hostremote_host
xdebug.remote_enable = on
xdebug.remote_handler = "dbgp"
xdebug.remote_autostart = on
xdebug.remote_port = 9001
xdebug.remote_host=docker.for.win.host.internal
; xdebug.remote_host=docker.for.win.localhost
; xdebug.idekey=PHPSTORM
; xdebug.remote_log = "/var/log/dnmp/php.xdebug.log"
; xdebug3
zend_extension=xdebug.so
xdebug.mode = debug
xdebug.discover_client_host = true
xdebug.client_host = 192.168.10.1
xdebug.client_port = 9003
xdebug.max_nesting_level = 512
xdebug.idekey = PHPSTORM
xdebug.start_with_request = trigger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment