Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
php:xdebug [2017/12/11 09:55] – [Подключение и настройка] mirocow | php:xdebug [2025/03/07 23:57] (текущий) – mirocow | ||
---|---|---|---|
Строка 6: | Строка 6: | ||
{{: | {{: | ||
+ | |||
+ | ==== v2.* ==== | ||
+ | |||
+ | < | ||
+ | [Xdebug] | ||
+ | zend_extension=xdebug.so | ||
+ | xdebug.remote_enable=1 | ||
+ | xdebug.remote_autostart=1 | ||
+ | xdebug.remote_connect_back=off | ||
+ | xdebug.remote_host=host.docker.internal | ||
+ | ;# 9000 is default (not required to set). | ||
+ | xdebug.remote_port=9000 | ||
+ | </ | ||
+ | |||
+ | ==== v3.* ==== | ||
+ | |||
+ | < | ||
+ | [Xdebug] | ||
+ | zend_extension=xdebug.so | ||
+ | xdebug.mode=debug | ||
+ | xdebug.start_with_request=yes | ||
+ | xdebug.client_host=host.docker.internal | ||
+ | ;# 9003 is now the default (set this for old PhpStorm settings). | ||
+ | xdebug.client_port=9000 | ||
+ | </ | ||
+ | |||
+ | ==== xdebug.ini ==== | ||
+ | |||
nano ./ | nano ./ | ||
Строка 21: | Строка 49: | ||
xdebug.show_mem_delta=1 | xdebug.show_mem_delta=1 | ||
xdebug.max_nesting_level=100 | xdebug.max_nesting_level=100 | ||
+ | xdebug.cli_color=1 | ||
+ | xdebug.scream=0 | ||
; Limits | ; Limits | ||
Строка 36: | Строка 66: | ||
xdebug.remote_autostart=0; | xdebug.remote_autostart=0; | ||
xdebug.remote_enable=1 | xdebug.remote_enable=1 | ||
+ | xdebug.remote_connect_back = 1 | ||
xdebug.remote_handler=dbgp | xdebug.remote_handler=dbgp | ||
xdebug.remote_host=127.0.0.1; | xdebug.remote_host=127.0.0.1; | ||
Строка 58: | Строка 89: | ||
</ | </ | ||
- | ===== Основный настройки ===== | + | ===== Основные настройки ===== |
* xdebug.remote_autostart | * xdebug.remote_autostart | ||
- | * xdebug.remote_host | ||
* xdebug.remote_host | * xdebug.remote_host | ||
* xdebug.var_display_max_depth = 5; -1 No limit | * xdebug.var_display_max_depth = 5; -1 No limit |