Adding Debugging Support for a Custom Language #13139
Unanswered
cricri8414
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
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.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions