From 624bf6aea6fc49f3ee4643df7b4693523e2d9452 Mon Sep 17 00:00:00 2001 From: tilpner Date: Sun, 14 Jun 2020 20:41:07 +0200 Subject: lib: make network debugging easier --- nix/lib.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nix/lib.nix b/nix/lib.nix index 93b3dc8..e152df9 100644 --- a/nix/lib.nix +++ b/nix/lib.nix @@ -87,6 +87,8 @@ rec { launcher = firefox: pkgs.writeShellScriptBin "firefox" '' # FF doesn't accept ro profiles, tries to create lockfile TMP_PROFILE="$(mktemp -d)" + echo "$TMP_PROFILE" + function finish() { echo deleting profile # rm -rv "$TMP_PROFILE" @@ -95,8 +97,15 @@ rec { # cp -r ''${profile} "$TMP_PROFILE" chmod u+rwx -R "$TMP_PROFILE" + export MOZ_LOG=nsHttp:1 + export MOZ_LOG_FILE=ff + # Make FF pay attention to services.settings.server + # https://bugzilla.mozilla.org/show_bug.cgi?id=1598562 + export XPCSHELL_TEST_PROFILE_DIR=1 + ${firefox}/bin/firefox \ --no-remote \ - --profile "$TMP_PROFILE" + --profile "$TMP_PROFILE" \ + "$@" ''; } -- cgit v1.2.3