Coder Social home page Coder Social logo

Yanking more things about vlime HOT 4 CLOSED

vlime avatar vlime commented on May 27, 2024
Yanking more things

from vlime.

Comments (4)

l04m33 avatar l04m33 commented on May 27, 2024

Hmm, what object do you need from the debugger? Can you give an example? AFAIK the Swank server doesn't have an API for extracting objects from the debugger, so I don't think it's possible to yank things from there. But there's chance you can get what you want from somewhere else, or from other APIs. We may then add shortcuts for them.

As for the inspector, there's the SWANK:INSPECTOR-NTH-PART function, which returns the specified object. I think we can make use of it. But this function is a bit inconsistent, in that updating the inspector may change the value it returns. I'm not yet sure how to handle this inconsistency.

from vlime.

l04m33 avatar l04m33 commented on May 27, 2024

Well, I found this in the Slime manual regarding copying values in the inspector:

M-RET
M-x slime-inspector-copy-down

Store the value under point in the variable ‘*’. This can then be used to access the object in the REPL.

For Vlime, I'd say we just evaluate (swank:inspector-nth-part ...) from the inspector, and let the result show up in the REPL buffer, so that one can yank that value with the good old \y command. I can add a key mapping for this.

from vlime.

sjl avatar sjl commented on May 27, 2024

Hmm, what object do you need from the debugger?

Mostly the arguments for a particular frame, e.g. the 0 here:

screenshot

from vlime.

l04m33 avatar l04m33 commented on May 27, 2024

I see. There's a not-so-straightforward way to access frame local variables. In the case of your example:

  1. Press e on frame 0;
  2. In the input buffer, write (setf cl-user::* sb-debug::arg-0), and press <CR> in normal mode;
  3. The value you need would be accessible via the * variable in the REPL.

I think I can make a shortcut for these steps.

from vlime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.