Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose locals from let expressions to the debugger #9918

Merged

Conversation

9999years
Copy link
Contributor

Motivation

Closes #8827.

With this file:

let
  r = [];
  x = builtins.throw r;
in
  x

Before:

$ nix eval --file test.nix --debugger
error: cannot coerce a list to a string

nix-repl> :env
Env level 0
builtins true false ...

After:

$ nix eval --file test.nix --debugger
error: cannot coerce a list to a string: [ ]

nix-repl> :env
Env level 0
static: x r

Env level 1
builtins true false ...

nix-repl> r
[ ]

Priorities and Process

Add 馃憤 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@thufschmitt thufschmitt merged commit acef4f1 into NixOS:master Feb 8, 2024
8 checks passed
@9999years 9999years deleted the debugger-locals-for-let-expressions branch February 8, 2024 16:36
lf- added a commit to lf-/nix that referenced this pull request Mar 6, 2024
lf- added a commit to lf-/nix that referenced this pull request Mar 6, 2024
lf- added a commit to lf-/nix that referenced this pull request Mar 6, 2024
lf- added a commit to lf-/nix that referenced this pull request Mar 10, 2024
lf- added a commit to lf-/nix that referenced this pull request Mar 10, 2024
lf- added a commit to lf-/nix that referenced this pull request Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Debugger cannot get locals in some instances
2 participants