[gambit-list] Multi-thread debugging
Marc Feeley
feeley at iro.umontreal.ca
Fri Apr 25 10:51:37 EDT 2008
On 25-Apr-08, at 10:38 AM, David St-Hilaire wrote:
> Hello!
>
> I have an application that uses 2 threads where my second thread
> silently dies,
> without having any errors reported or debugger kicking in. What is
> the simplest
> way to have a debug repl pop up when I thread dies?
>
> I've read on the mailing list that it was possible to have a new
> xterm window
> pop up
> (https://webmail.iro.umontreal.ca/pipermail/gambit-list/2007-August/001671.html
> )
> but is it possible to simply have the debugger pop up in the current
> repl?
You need to start gsi with the -:dar option. Note that each thread
has its own REPL but there is only one console, so the accesses to the
console are serialized. In other words, if thread #1's REPL is
currently active then if thread #2 encounters an error its REPL will
wait until the user has entered something at thread #1's REPL. It is
sometimes useful to force this switch from one REPL to the other by
entering a dummy expression.
Marc
More information about the Gambit-list
mailing list