Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

slime how to look at special variable value

11 views
Skip to first unread message

Antony

unread,
Sep 30, 2010, 4:13:53 AM9/30/10
to
When I put a break in my code and i get the slime debugger,
how do i inspect a global?

-Antony

Pascal Bourguignon

unread,
Sep 30, 2010, 6:07:56 AM9/30/10
to
Antony <spam+lisp...@gmail.com> writes:

> When I put a break in my code and i get the slime debugger,
> how do i inspect a global?

1- Move the cursor down to some stack frame,
2- type 'e' to evaluate an expression,
3- type the expression: *your-global-variable*
4- type RET
5- read the result in the mini-buffer.


Notice that the value of a special variable depends on the dynamic
scope, so if you go down in the stack and select another stack frame,
you should expect to get a different value. But it seems theres a bug
in the debuggers...

If it's not practical to get the value in the minibuffer, you can revert
to the native debugger which will work in the REPL by typing 'B'.

--
__Pascal Bourguignon__
http://www.informatimago.com

Antony

unread,
Oct 4, 2010, 12:20:02 PM10/4/10
to
On 9/30/2010 3:07 AM, Pascal Bourguignon wrote:
> 2- type 'e' to evaluate an expression,
>.......

>
> If it's not practical to get the value in the minibuffer, you can revert
> to the native debugger which will work in the REPL by typing 'B'.
>
Thanks Pascal.
-Antony
0 new messages