Comments (5)
That's a pretty good idea! However, it might reduce the incentive to add proper support for all the specific debug adapters (which I think is fine).
I'm not a C++ guy and lldb/gdb are rather alien to me. I'm very curious in which ways these evalTemplates
would be used and what could be achieved by them. It would be awesome if these use-cases or setups could be collected in this repository.
For what do you need the differentiation between watch
or repl
contexts though? The extension always uses the watch
context, as the repl
context sometimes is more verbose, making the result unparsable.
Oh, by the way, thanks for your great lldb vscode extension ;)
from vscode-debug-visualizer.
it might reduce the incentive to add proper support for all the specific debug adapters (which I think is fine).
If templates are configurable, others will be able to create them and contribute back to your repo. Otherwise, in order to add a new debugger, one would have to fork and build your extension, which raises the bar considerably.
For what do you need the differentiation between watch or repl contexts though?
In the case of lldb extension, debugger commands may be executed only in "repl" context. Other debuggers may have this as well, so IMO, it'd be best to let developers choose the context.
from vscode-debug-visualizer.
There is now the configuration option debugVisualizer.debugAdapterConfigurations
in 0.13.0:
"debugVisualizer.debugAdapterConfigurations": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"expressionTemplate": {
"type:": "string",
"description": "A template for the final expression sent to the debugger for evaluation. Use `${expr}` to refer to the currently visualized expression."
},
"context": {
"type": "string",
"enum": [
"watch",
"repl"
],
"description": "The context to use for evaluating the expression."
}
}
}
}
from vscode-debug-visualizer.
Closing as this should solve your use case.
from vscode-debug-visualizer.
Hey @vadimcn! Which context do you think should be used by default for evaluating expressions?
I used to chose watch
as default, but many debug adapters truncate long strings, so I switched to repl
. But for repl
, the print command of lldb wraps the result in some other text. Also, having to use the print command is confusing.
from vscode-debug-visualizer.
Related Issues (20)
- Use with jupyter kernel
- Unable to run debug visualizer HOT 4
- data extractor help HOT 2
- Failed to visualize with Swift Demo,= ~~~
- Can you support idea plugIn
- CPP does not wqork HOT 1
- Missing support for "gdb" debug adapter
- https://github.com/hediet/vscode-debug-visualizer
- Visualization in python
- Publish `Debug Visualizer` to Open VSX
- Overcome python debug adapter's string truncation limit HOT 10
- Please create and example in C HOT 1
- Is not working for dart language
- No able to run Debug visualizer
- `yarn build` fails on most recent commit HOT 2
- C# debugger has a very low (1024 chars) JSON length limit HOT 13
- Unable to show geometries data HOT 2
- Short choice of visualisers HOT 7
- How do you visualize an array as like a literal table, rather than a graph? HOT 1
- Version bump
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 vscode-debug-visualizer.