[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do you debug build-side code?
From: |
David Arroyo |
Subject: |
Re: How do you debug build-side code? |
Date: |
Sun, 03 Apr 2022 22:58:23 -0400 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-382-g88b93171a9-fm-20220330.001-g88b93171 |
On Sun, Apr 3, 2022, at 15:54, David Arroyo wrote:
> I'd love to hear how others debug errors in the build-side code. Is
> there any way for me to trace the function calls or even have an
> interactive debugging session?
Partially answering my own question, by rifling through the files listed
in the `guix build ...` output I can eventually find a file of the form
/gnu/store/...-NAME-builder
which contains the S-expression created from my G-expression, and which
showed me that the generated program was not valid (it was trying to
use a string as a function.
Cheers,
David