From ff0d85fdc843d3bfadadf71fda40e273b69162c3 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 20 Aug 2008 08:21:54 +0000 Subject: [PATCH] Added traceMarked; it is traceWhatis with the extra (first) argument to distinguish the output of that exat statement. svn path=/nixpkgs/trunk/; revision=12666 --- pkgs/lib/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix index 20fac305cfc..0a4b8e9e989 100644 --- a/pkgs/lib/default.nix +++ b/pkgs/lib/default.nix @@ -461,6 +461,7 @@ rec { # this can help debug your code as well - designed to not produce thousands of lines traceWhatis = x : __trace (whatis x) x; + traceMarked = str: x: __trace (str + (whatis x)) x; whatis = x : if (__isAttrs x) then if (x ? outPath) then "x is a derivation with name ${x.name}"