I am writing an extension in VS Code that has a graphical editor (similar to a flow chart) that persists its data in a text file. All editing is done via the graphical editor. The text file is too cryptic for users to work with. I would like to implement a debugger for the underlying file, which means users should be able to set breakpoints on the steps within the graphical editor and proceed from step to step within the editor. A couple of questions: 1) Am I way off base here? Does the VS Code debug framework only support setting breakpoints in text files? 2) Can breakpoints be set programmatically (if so, how)?
I have looked at Ballerina which has both a text editor and a graphical editor that are synchronized. I can set breakpoints in the text editor only.
Thanks for any help.