Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
php:xdebug [2017/08/22 09:12] – [Console XDebug] 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 | ||
+ | xdebug.var_display_max_depth = 5; -1 No limit | ||
+ | xdebug.var_display_max_children = 256; -1 No limit | ||
+ | xdebug.var_display_max_data = 1024; -1 No limit | ||
; trace | ; trace | ||
Строка 31: | Строка 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; | ||
Строка 52: | Строка 88: | ||
; | ; | ||
</ | </ | ||
+ | |||
+ | ===== Основные настройки ===== | ||
+ | |||
+ | * xdebug.remote_autostart | ||
+ | * xdebug.remote_host | ||
+ | * xdebug.var_display_max_depth = 5; -1 No limit | ||
+ | * xdebug.var_display_max_children = 256; -1 No limit | ||
+ | * xdebug.var_display_max_data = 1024; -1 No limit | ||
+ | |||
===== Web XDebug ===== | ===== Web XDebug ===== |