Added traceMarked; it is traceWhatis with the extra (first) argument to distinguish the output of that exat statement.
svn path=/nixpkgs/trunk/; revision=12666
This commit is contained in:
parent
a8da119da4
commit
ff0d85fdc8
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user