This extension helps to visualize programs and is meant to support beginners in programming. The extension is inspired by Python Tutor.
The extension is used to visualise a program and its heap and stack. Currently there is support for Java and Python. An example is shown in the image below.
To start the visualisation it is necessary to have the file open and it is a normal .py or .java file. Then a button programflow-visualisation will appear in the context menu or in the run field to start it.
It is necessary to have the correct extension in vsc for the specific language.
For example, for Java it is recommended to have Debugger for Java and also Language Support for Java(TM) by Red Hat installed.
For Python, Python and Jupyter.
If an error occurs, it may be because the extension needs to create a file. So a fix might be to make sure you have the correct permissions on the folder.
sudo chown -R <my_username> <my_folder>This extension adds the following settings:
Output Backend Trace: enable/disable the output of the generated trace to a json file.
-
Some visualisations, such as a HashMap in Java, are not as perfect as they should be.
-
With larger files it becomes very slow and inefficient.
The release notes are listed below
Initial release of ProgramFlow-Visualisation.
- Support for Python and Java


