How to run the DEBUG VISUALIZER Person.py example
I copied the code, Person.py, from the webpage (https://github.com/hediet/vscode-debug-visualizer/tree/master/demos/python) and am trying to run it with the DEBUG VISUALIZER extension for VSC. I receive this error: ModuleNotFoundError: No module named 'vscodedebugvisualizer', which clearly tells me to update VSC so the module can be found. However, I found nothing in the extension description about where or how to do so. Thank you, and please clarify. Dan
Hi, for python debugging you need to install the python visualization module: pip install vscodedebugvisualizer. I don't think it is being installed automatically with the extension. But normally the extension sould tell you that by itself if the module cannot be found if i'm reading this code correctly: PyVisualizationBackend
Hi, for python debugging you need to install the python visualization module:
pip install vscodedebugvisualizer. I don't think it is being installed automatically with the extension. But normally the extension sould tell you that by itself if the module cannot be found if i'm reading this code correctly: PyVisualizationBackend
Thanks, Fabitepe! You're absolutely correct in that once I did the 'pip install vscodedebugvisualizer', the Person.py demo was able to run without any coding errors. However, since I'm using the author's 'Person' demo, I expected this extension to now show animated debugging as it walks through the code (which is the only reason why I installed the Debug Visualizer extension on my VSC). I have no idea what to expect, but I do believe I should see some type of animation. And I agree, the pip install for the 'visualizer' should have been packaged into the extension, but maybe that wasn't possible. I did issue the "Debug Visualizer: New View" and the "Debug Visualizer: Use Selection as Expression" commands but still cannot get the animation (assuming there should be any for this demo example) to work. Thanks again for your reply. Dan
@Fabitepe In my case, the extension did not tell me anything (at least I found nothing in Problems, Output, Notifications etc..).
I installed vscodedebugvisualizer in my virtual env, but i still get no Extractors or more Visualizers?
@turbotimon i believe this is because this change is yet to be released by @hediet. Right now the extension does not actually use the python interface and instead falls back to some json representation of python objects. Also i don't think there are any extractors or special visualizers selectable in the UI for python. The different visualizations come with the vscodedebugvisualizer package and are applied depending on the type of the input variable.