0

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.

asked Jan 12, 2025 at 17:11
1
  • The official C++ plugin can use one of the several debuggers, including GDB. If you set it to use GDB, you don't need to do anything. Commented Jan 12, 2025 at 17:11

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.