digitalmars.D.ide - CLion: Debugging on windows with DMD and LLDB
- Andre Pany (20/20) Oct 09 Hi,
- Dejan Lekic (6/9) Oct 09 Why would you do that? CLion, being based on IDEA, can simply
- Andre (11/20) Oct 09 Yes I know the plugin, I created some pull requests for the
- Andre Pany (15/35) Oct 15 My findings:
Hi, as CLion is now free for hobby projects it is quite interesting IDE for me. I try to get as much as possible working on a barebone CLion installation on Windows. - Syntax highlighting for D is easy due to Textmate Bundle for D - I registered *.D as as C files in the IDE, this enables me to set a breakoint in a source code line. - Syntax check and Code completion is at the moment not interesting, Copilot does a pretty good job here. Now the difficult part. CLion comes on Windows with GDB (MinGW Toolchain) and LLDB 9.0 (Visual Studio Toolchain). I assume in theory it should be possible to compile an x64 application with DMD and debug it with LLDB on Windows? Kind regards André
Oct 09
On Thursday, 9 October 2025 at 15:45:40 UTC, Andre Pany wrote:Hi, as CLion is now free for hobby projects it is quite interesting IDE for me.Why would you do that? CLion, being based on IDEA, can simply have D Language Plugin installed... I use IDEA (Ultimate) for Python, D, Terraform, etc... Plugin page: https://plugins.jetbrains.com/plugin/8115-d-language In case you wonder, it works with the Community Edition as well.
Oct 09
On Thursday, 9 October 2025 at 16:00:58 UTC, Dejan Lekic wrote:On Thursday, 9 October 2025 at 15:45:40 UTC, Andre Pany wrote:Yes I know the plugin, I created some pull requests for the plugin in the past. The plugin only works for IntelliJ, not for CLion. The maintainers do a great job, but there a some broken parts, including debugging which makes the plugin at this point in time not usable. Therefore if I can customise a stable barebone CLion, which comes with an integrated gcc and lddb debugger, this looks quite interesting for me. Kind regards AndréHi, as CLion is now free for hobby projects it is quite interesting IDE for me.Why would you do that? CLion, being based on IDEA, can simply have D Language Plugin installed... I use IDEA (Ultimate) for Python, D, Terraform, etc... Plugin page: https://plugins.jetbrains.com/plugin/8115-d-language In case you wonder, it works with the Community Edition as well.
Oct 09
On Thursday, 9 October 2025 at 15:45:40 UTC, Andre Pany wrote:Hi, as CLion is now free for hobby projects it is quite interesting IDE for me. I try to get as much as possible working on a barebone CLion installation on Windows. - Syntax highlighting for D is easy due to Textmate Bundle for D - I registered *.D as as C files in the IDE, this enables me to set a breakoint in a source code line. - Syntax check and Code completion is at the moment not interesting, Copilot does a pretty good job here. Now the difficult part. CLion comes on Windows with GDB (MinGW Toolchain) and LLDB 9.0 (Visual Studio Toolchain). I assume in theory it should be possible to compile an x64 application with DMD and debug it with LLDB on Windows? Kind regards AndréMy findings: it works fine by using LDC instead of DMD. The embedded LLDB 9.0 works in limited way. The plugin "lsp4ij" also adds support for Debug Adapter Protocol. Therefore a recent LLDB (lldb-dap) can be used. The next CLion version 2025.3 will also add builtin support for DAP. => On windows after downloading LLVM, debugging will not work out of the box. The python "Windows embeddable package 3.10.10" needs to be downloaded and extracted to the LLVM bin directory. => Breakpoints only working with argument -gc => By using the DAP, *.d extension also not need to be registered as C++ file Kind regards André
Oct 15









Andre <andre s-e-a-p.de> 