4 ms·
As of now, before you can visualize your data structure, you must convert it to a compatible json string (like demonstrated in [1]). This json must match the sc
by Gehinnn 7y ago
As of now, before you can visualize your data structure, you must convert it to a compatible json string (like demonstrated in [1]). This json must match the schema of the visualizer you want to use.
For TypeScript/JavaScript however, my extension injects some helpers that convert some common data structures (like number arrays) automatically to appropriate JSON. It requires a deep understanding of the target programming language to see how such helpers could be injected.
I don't have this unterstanding for Python and would be very happy if someone who really knows Python could help me out.
[1] https://github.com/hediet/vscode-debug-visualizer/blob/master/demos/python/graph.py#L26 https://github.com/hediet/vscode-debug-visualizer/blob/maste...