new option: debugger-on-warn
Co-authored-by: Emilia Bopp <contact@ebopp.de> Change-Id: I5e20304538dd3e27fb36c32c0a6133cd6a6a6964
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
@args --debugger --option debugger-on-warn true
|
||||
Enter debugger with debugger-on-warn set.
|
||||
|
||||
nix-repl> let inspect = v: builtins.warn "inspect is deprecated" (throw "this happens after"); in inspect { }
|
||||
|
||||
warning: inspect is deprecated!
|
||||
warning: builtins.warn reached!
|
||||
|
||||
nix-repl> :c
|
||||
|
||||
{ }
|
||||
error: this happens after
|
||||
Reference in New Issue
Block a user