Comments (5)
we could definitely linkify variable values that look like locations (either file paths or URIs, URIs would be more general.)
This does already work today, you can cmd+click the value of [[FunctionLocation]]
from debug-adapter-protocol.
This seems like pretty limited applicability. I wonder if there's a simpler way to fix it up just for the case with a function, for example, in vscode we have a link detector on variable values, and if you include a location: "/path/file.js:123"
property on the function, users can cmd+click to jump there.
Related, @minsa110 was asking for a "go to definition" from the variables explorer in notebooks. It's a little more practical in that context because most variables come from a single document and maybe one can reverse engineer the locations on demand.
from debug-adapter-protocol.
V8 does give us a magic [[FunctionLocation]]
internal property. I don't really like the idea of treating 'magic properties' specially, but we could definitely linkify variable values that look like locations (either file paths or URIs, URIs would be more general.) And we could parse URIs that are children of the debug sessions's workspace folder to look a bit nicer.
I like that solution more than my proposal
from debug-adapter-protocol.
Oh yeah, we have #343 already :)
from debug-adapter-protocol.
@roblourens I was not able to cmd+click the value of [[FunctionLocation]]
in VSCode JS debugger when debugging an extension even though I see the source location. Has this made to the released version of VSCode?
from debug-adapter-protocol.
Related Issues (20)
- How should clients handle `showUser=false` but `url` given? HOT 1
- The
- how to remove break point HOT 2
- Lifetime of DataBreakpoint.dataId not specified HOT 4
- ModulesViewDescriptor is not used
- supportsVariablePaging is not completely documented
- ExceptionFilterOptions does not have hitCondition HOT 1
- Make hot reload a standard request HOT 8
- Make jump to code a standard event
- dataBreakpointInfo and setDatabreakpointsRequest needs new fields HOT 1
- Please add the full license text to the repo
- [Debug Adapter Protocol] - Sending BreakpointEvent for new breakpoints do not work for data breakpoints HOT 6
- Allow resolving the source location of stack frames as needed HOT 10
- Request for Adding Value Modification in Memory View
- Clarify impact of StackFrameFormat HOT 6
- "Object ID" is not defined HOT 2
- Add newline in "cancel" text
- memoryReference clarification in Variable HOT 2
- Typo in BreakpointLocationsArguments
- Policy for recording changes in changelog HOT 2
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 debug-adapter-protocol.