[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enter debugger on failure
From: |
Ludovic Courtès |
Subject: |
Re: enter debugger on failure |
Date: |
Tue, 30 May 2017 16:55:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hi!
Ricardo Wurmus <address@hidden> skribis:
> sometimes Guix crashes. That’s sometimes because of existing bugs
> (often in importers) or because I’ve just added something that doesn’t
> quite work.
>
> When Guix crashes it prints a backtrace and exits. Would it be possible
> to change that behaviour and instead enter a debug REPL where I could
> inspect values and resume after correcting the error?
‘guix system’ has a ‘--on-error’ command-line option that we could
perhaps generalize somewhat. WDYT?
Now, two comments:
1. importers are “for developers”, so I’m personally more tolerant if
they’re rough on the edges ;-)
2. one can always do:
./pre-inst-env guile
address@hidden> ,use(guix scripts import)
address@hidden> (guix-import "foo" "bar")
;; crash!
address@hidden>[1] ,bt
Ludo’.