guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interactive Debugging


From: Amirouche Boubekki
Subject: Re: Interactive Debugging
Date: Thu, 24 Oct 2019 11:22:18 +0200

Le jeu. 24 oct. 2019 à 01:48, Christopher Lam
<address@hidden> a écrit :

[...]

> Not sure how much knowledge of debugger is required, all I want to do is to
> dump local variables at the breakpoint.

For records there is (set-record-type-printer! type proc):

  
https://www.gnu.org/software/guile/manual/html_node/SRFI_002d9-Records.html#index-set_002drecord_002dtype_002dprinter_0021

It is similar to how one set MyClass.__repr__ in python.

For other types there is usually a foobar->alist or foobar->list procedures.


Hope this helps



reply via email to

[Prev in Thread] Current Thread [Next in Thread]