Tobias C. Rittweiler | 16 Mar 2008 23:18
Picon

Inspector-Hook


Hi,

I have been in a position today where I really wished a way to inspect
an object from within a function contour. However, I find the native
inspector of SBCL not really convenient, and would have really liked if
(inspect foo) would pop up the Slime inspector.

For this, I'd like to write a short CDR proposing an *INSPECTOR-HOOK*
that works very similiarly to *DEBUGGER-HOOK*. 

Has any Climacs hacker thought about this issue before? Does Climacs
contain any trick given its strong OO nature?

  -T.
Tobias C. Rittweiler | 20 Mar 2008 02:20
Picon

Re: Inspector-Hook

"Tobias C. Rittweiler" <tcr <at> freebits.de> writes:

> For this, I'd like to write a short CDR proposing an *INSPECTOR-HOOK*
> that works very similiarly to *DEBUGGER-HOOK*. 

A draft of the proposal can be found at

  http://thread.gmane.org/gmane.lisp.cdr.general/101

Comments should go to cdr-discuss mailinglist.

  -T.
Nikodemus Siivola | 17 Mar 2008 12:07
Gravatar

Re: Inspector-Hook

On Mon, Mar 17, 2008 at 12:18 AM, Tobias C. Rittweiler <tcr <at> freebits.de> wrote:

>  I have been in a position today where I really wished a way to inspect
>  an object from within a function contour. However, I find the native
>  inspector of SBCL not really convenient, and would have really liked if
>  (inspect foo) would pop up the Slime inspector.

FWIW, you can use SB-IMPL::*INSPECT-HOOK* for this.

>  For this, I'd like to write a short CDR proposing an *INSPECTOR-HOOK*
>  that works very similiarly to *DEBUGGER-HOOK*.

...but a CDR would indeed be nice!

Cheers,

 -- Nikodemus
Tobias C. Rittweiler | 17 Mar 2008 13:50
Picon

Re: Inspector-Hook

"Nikodemus Siivola" <nikodemus <at> random-state.net> writes:

> On Mon, Mar 17, 2008 at 12:18 AM, Tobias C. Rittweiler <tcr <at> freebits.de> wrote:
>
> >  I have been in a position today where I really wished a way to inspect
> >  an object from within a function contour. However, I find the native
> >  inspector of SBCL not really convenient, and would have really liked if
> >  (inspect foo) would pop up the Slime inspector.
>
> FWIW, you can use SB-IMPL::*INSPECT-HOOK* for this.

ITYM *INSPECT-FUN*, didn't you?

  -T.
Nikodemus Siivola | 17 Mar 2008 14:06
Gravatar

Re: Re: Inspector-Hook

On Mon, Mar 17, 2008 at 2:50 PM, Tobias C. Rittweiler <tcr <at> freebits.de> wrote:

>  > FWIW, you can use SB-IMPL::*INSPECT-HOOK* for this.
>
>  ITYM *INSPECT-FUN*, didn't you?

Yes, oops! I blame trying to lay off coffee.

Cheers,

 -- Nikodemus
Troels Henriksen | 16 Mar 2008 23:58
Picon
Gravatar

Re: Inspector-Hook

"Tobias C. Rittweiler" <tcr <at> freebits.de> writes:

> Has any Climacs hacker thought about this issue before? Does Climacs
> contain any trick given its strong OO nature?

No, we just call CLOUSEAU:INSPECTOR.

An inspector hook sounds like a fair idea, though.

--

-- 
\  Troels
/\ Henriksen

Gmane