builtins.dbg #199

Open
opened 2024-03-29 22:12:20 +00:00 by rbt · 0 comments
Owner

This sucks:

builtins.trace nix-your-shell.overlays.default nix-your-shell.overlays.default

This is also not great because it makes you restructure stuff around the expression:

let v = nix-your-shell.overlays.default;
 in builtins.trace v v;

Describe the solution you'd like

builtins.dbg my-big-variable

It should output something like this:

dbg: path/to/file.nix:34:11: my-big-variable = ...
## Is your feature request related to a problem? Please describe. This sucks: ```nix builtins.trace nix-your-shell.overlays.default nix-your-shell.overlays.default ``` This is also not great because it makes you restructure stuff around the expression: ```nix let v = nix-your-shell.overlays.default; in builtins.trace v v; ``` ## Describe the solution you'd like ```nix builtins.dbg my-big-variable ``` It should output something like this: ``` dbg: path/to/file.nix:34:11: my-big-variable = ... ```
qyriad added the
ux
label 2024-03-30 22:52:57 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#199
No description provided.