diff --git a/src/root/reproduce.tt b/src/root/reproduce.tt
index 11eaccc9..dc88edfa 100644
--- a/src/root/reproduce.tt
+++ b/src/root/reproduce.tt
@@ -210,10 +210,9 @@ if [ -n "$printFlags" ]; then
 fi
 
 info "running nix-build..."
-echo "using these flags: ${args[@]}" >&2
-
-exec nix-build "${args[@]}" "${extraArgs[@]}"
-
+echo "using the following invocation:" >&2
+set -x
+nix-build "${args[@]}" "${extraArgs[@]}"
 }
 
 main "$@"