Comments (4)
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.
Well, I found this in the Slime manual regarding copying values in the inspector:
M-RET
M-x slime-inspector-copy-downStore 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.
Hmm, what object do you need from the debugger?
Mostly the arguments for a particular frame, e.g. the 0
here:
from vlime.
I see. There's a not-so-straightforward way to access frame local variables. In the case of your example:
- Press
e
on frame 0; - In the input buffer, write
(setf cl-user::* sb-debug::arg-0)
, and press<CR>
in normal mode; - 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)
- loading start-vlime.lisp says quicklisp isn't installed but it is HOT 2
- Perf improvement wanted for vlime#ui#CurArgPos() HOT 5
- Sized vertical repl does not work in neovim
- JSON communication working HOT 15
- Connecting to running Swank server? HOT 25
- Installation issues on MacOS with Pathogen HOT 3
- Implement the Parinfer algorithm HOT 2
- Request consideration to "rename" the project HOT 1
- How to get autocomplete? HOT 3
- Don't escape ANSI escape sequences
- `sldb` buffer doesn't work on OpenBSD HOT 7
- Weird highlight behavior inside the REPL buffer HOT 1
- SBCL warnings seem to break the REPL connection HOT 22
- can't press `d` to inspect frame in debugger HOT 4
- Interactively macro-expand a form HOT 2
- Rebind your leaders for weird outcome HOT 1
- Fix this bug introduced by upstream: thread waiting HOT 2
- Slynk support...? HOT 2
- Bug in commit cfaac6ccb379f9f85bfb2ef17ca6369dfadf2be6
- neovim swank:close-connection: end of file HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vlime.