Skip to content

Commit 41c5c93

Browse files
committed
Add xdebug with a trigger_value
1 parent 54a451a commit 41c5c93

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

dev/flake.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,25 @@
2929
staticDeployLib = inputs.static-deploy.lib.${system};
3030
staticDeployPkgs = inputs.static-deploy.packages.${system};
3131
staticDeploy = staticDeployPkgs.plugin;
32+
# Note that /tmp/xd has to be created to receive traces
3233
phpOptions = ''
3334
opcache.interned_strings_buffer = 16
3435
opcache.jit = 1255
3536
opcache.jit_buffer_size = 8M
3637
upload_max_filesize=1024M
38+
xdebug.mode=trace
39+
xdebug.output_dir=/tmp/xd
40+
xdebug.start_with_request=trigger
41+
xdebug.trace_format=3
42+
xdebug.trace_output_name = xdebug.trace.%t.%s
43+
xdebug.trigger_value = "e5c2217a39ff4e9ad4c5f99243bb47de68ee112aa685f79264686b202591ec80"
3744
'';
3845
overlay = self: super:
3946
let
4047
php = super.${phpPackage}.buildEnv {
4148
extraConfig = phpOptions;
4249
extensions = { enabled, all }:
43-
enabled ++ (with all; [ apcu imagick memcached ]);
50+
enabled ++ (with all; [ apcu imagick memcached xdebug ]);
4451
};
4552
phpIniFile =
4653
pkgs.runCommand "php.ini" { preferLocalBuild = true; } ''

0 commit comments

Comments
 (0)