|
From: | Catonano |
Subject: | Re: [MIT-Scheme-devel] help with tracing |
Date: | Mon, 17 Nov 2014 09:49:33 +0100 |
The DEBUG procedure inspects a continuation (the stack). My-function
does not return a continuation, so you get an error. At that point,
typing (DEBUG) inspects the continuation for that error, which is to
return from make-initial-dstate to the (let ((dstate |###|))...) form
in debug-internal. That is what debug is showing you.
> I would love to see the same break up in subproblems on my own code.
>
> How can I achieve that ?
>
> Thanks
>
> P.S. I also tried with calling bkpt in the middle of my code but in that case
> the debugger shows a window that is not as interactive as the one shown when
> calling debug directly.
You are seeing a breakpoint REPL prompt, similar to the error REPL
prompt. Type
(debug)
to inspect the breakpoint's continuation. That should show you what
will happen when you continue from the breakpoint. Clear as mud?
[Prev in Thread] | Current Thread | [Next in Thread] |