Reputation: 1
I am developing a plugin for Visual Studio Code to facilitate the programming of applications using a domain-specific programming language. Currently, there is a transpiler from such a language to C. The transpiler can incorporate #line pragmas into the generated code, which allows us to map the lines of the generated code with the original source code. Thanks to these pragmas, it is possible to debug programs written in the domain-specific programming language using the GDB tool, including the definition of breakpoints and the step-by-step execution of statements of the original code.
For the Visual Studio Code plugin we are developing, I would like to enable debugging with breakpoints and step-by-step execution. In principle, no additional code should be necessary since, thanks to the mentioned #line pragmas, GDB can debug the original code.
Is it possible to add support for a domain-specific programming language to the original C/C++ plugin? If so, what is the best way to do this, could it be done without modifying the plugin code?
Any advice, resources, or examples would be greatly appreciated.
I haven't tried implementing anything specific yet because I'm not sure how to approach this. I believe it might involve extending or customizing the existing C/C++ plugin, but I'm unsure how to proceed.
Upvotes: 0
Views: 36