1- {{ if getenv " PHP_XDEBUG" }}
1+ {{$mode := getenv " XDEBUG_MODE" }}
2+ {{ if eq $mode " debug" }}
23zend_extension= xdebug.so
3- xdebug.max_nesting_level = {{ getenv " PHP_XDEBUG_MAX_NESTING_LEVEL" " 256" }}
4- xdebug.remote_addr_header = " {{ getenv " PHP_XDEBUG_REMOTE_ADDR_HEADER" " " }}"
5- xdebug.remote_autostart = {{ getenv " PHP_XDEBUG_REMOTE_AUTOSTART" " 0" }}
6- xdebug.remote_connect_back = {{ getenv " PHP_XDEBUG_REMOTE_CONNECT_BACK" " 1" }}
7- xdebug.remote_enable = {{ getenv " PHP_XDEBUG_REMOTE_ENABLE" " 1" }}
8- xdebug.remote_handler = {{ getenv " PHP_XDEBUG_REMOTE_HANDLER" " dbgp" }}
9- xdebug.remote_host = {{ getenv " PHP_XDEBUG_REMOTE_HOST" " localhost" }}
10- xdebug.remote_log = " {{ getenv " PHP_XDEBUG_REMOTE_LOG" " " }}"
11- xdebug.remote_mode = {{ getenv " PHP_XDEBUG_REMOTE_MODE" " req" }}
12- xdebug.remote_port = {{ getenv " PHP_XDEBUG_REMOTE_PORT" " 9000" }}
13-
14- {{ if getenv " PHP_XDEBUG_PROFILER" }}
15- xdebug.profiler_aggregate = {{ getenv " PHP_XDEBUG_PROFILER_AGGREGATE" " 0" }}
16- xdebug.profiler_append = {{ getenv " PHP_XDEBUG_PROFILER_APPEND" " 0" }}
17- xdebug.profiler_enable = {{ getenv " PHP_XDEBUG_PROFILER_ENABLE" " 0" }}
18- xdebug.profiler_enable_trigger = {{ getenv " PHP_XDEBUG_PROFILER_ENABLE_TRIGGER" " 0" }}
19- xdebug.profiler_enable_trigger_value = " {{ getenv " PHP_XDEBUG_PROFILER_ENABLE_TRIGGER_VALUE" " " }}"
20- xdebug.profiler_output_dir = {{ getenv " PHP_XDEBUG_PROFILER_FILES_DIR" }}/xdebug/profiler
21- xdebug.profiler_output_name = {{ getenv " PHP_XDEBUG_PROFILER_OUTPUT_NAME" " cachegrind.out.%p " }}
4+ xdebug.max_nesting_level = {{ getenv " XDEBUG_MAX_NESTING_LEVEL" " 256" }}
225{{ end }}
6+ {{ if eq $mode " profile" }}
7+ zend_extension= xdebug.so
238
24- {{ end }}
9+ xdebug.max_nesting_level = {{ getenv " XDEBUG_MAX_NESTING_LEVEL" " 256" }}
10+ xdebug.profiler_append = {{ getenv " XDEBUG_PROFILER_APPEND" " 0" }}
11+ xdebug.output_dir = {{ getenv " XDEBUG_PROFILER_FILES_DIR" }}/xdebug/profiler
12+ xdebug.profiler_output_name = {{ getenv " XDEBUG_PROFILER_OUTPUT_NAME" " cachegrind.out.%p " }}
13+ xdebug.trigger_value = " {{ getenv " XDEBUG_PROFILER_ENABLE_TRIGGER_VALUE" " " }}"
14+ {{ end }}
0 commit comments