Comments (17)
I faced the same issue but later I came to know about the solution from here. Print setting in gdb
If GDB is printing a large array, it stops printing after it has printed the number of elements set by the set print elements command and appends ...
at the end. This limit also applies to the display of strings. When GDB starts, this limit is set to 200. Setting number-of-elements to unlimited or zero means that the number of elements to print is unlimited.
So what you need to do is that while debugging, execute the command -exec set print elements 0
in debug console.
from vscode-debug-visualizer.
Hi there! Thanks for opening an issue.
Basically, it should work like that. But your debugger (cppdbg) is behaving strange.
When evaluating myGraphJson
it only prints { ... }
. My extension cannot do much with that.
The debugger does not seem to understand strings. My extension cannot help you if even the debugger does not understand strings.
Maybe you can figure out how to teach the debugger about strings.
from vscode-debug-visualizer.
what debbuger do you recommend to use?
this is my launch file:
from vscode-debug-visualizer.
Sorry, I don't have experience in C++. But I know that in order to debug rust properly, you need to install some formatters for gdb. Maybe someone else with more experience can help?
from vscode-debug-visualizer.
how does the parsing to JSON file works?
from vscode-debug-visualizer.
And parses the result. Clearly {...}
is not a json. If you make your debugger to output your string in the debug console when evaluating myGraphJson
, my extension will work.
from vscode-debug-visualizer.
The problem is that string is defined as a class in cpp, so to get the data of the string you need to write:
string.data()
but the still there is another problem, because .data() returns an array of char and keeps the \ every time a " is needed in the .json syntax, So the praser can't read the information.
from vscode-debug-visualizer.
The escaping is not the problem, the extension already tries to double unescape it. However, the leading address is a problem.
Do you have an idea how to fix this in a generic way?
from vscode-debug-visualizer.
why the leading address is a problem?
from vscode-debug-visualizer.
Is this 0xf...b8 "{ \"kind\":
the start of escaped json?
"{ \"kind\":
would be!
from vscode-debug-visualizer.
Do you have any solution?
from vscode-debug-visualizer.
I think that command can even be automatically run through a setup command!
Thanks for finding it!
from vscode-debug-visualizer.
I faced the same issue but later I came to know about the solution from here. Print setting in gdb
If GDB is printing a large array, it stops printing after it has printed the number of elements set by the set print elements command and appends
...
at the end. This limit also applies to the display of strings. When GDB starts, this limit is set to 200. Setting number-of-elements to unlimited or zero means that the number of elements to print is unlimited.So what you need to do is that while debugging, execute the command
-exec set print elements 0
in debug console.
hey. I used this method, but without success
from vscode-debug-visualizer.
@zqchinaone can you enter the visualized expr into debug console and post a Screenshot?
from vscode-debug-visualizer.
from vscode-debug-visualizer.
It looks like gdb does not recognize the string.
from vscode-debug-visualizer.
I faced the same issue but later I came to know about the solution from here. Print setting in gdb
If GDB is printing a large array, it stops printing after it has printed the number of elements set by the set print elements command and appends
...
at the end. This limit also applies to the display of strings. When GDB starts, this limit is set to 200. Setting number-of-elements to unlimited or zero means that the number of elements to print is unlimited.So what you need to do is that while debugging, execute the command
-exec set print elements 0
in debug console.
This worked. Thanks a ton @dvb99 ❤️ ✌️
from vscode-debug-visualizer.
Related Issues (20)
- 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
- Python Visualizer is cluttered
- Unable to get the grid visualisation in python demo HOT 1
- Error: Could not parse evaluation result as JSON: Unexpected token 'U', "Usage: -Us"... is not valid JSON HOT 1
- Error: Vizualising the json of C++ graph view is failing HOT 5
- Visualizer is displaying some type of object structure rather than a visual representation of that object
- cortex debug,
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.