Thread overview
CLion: Debugging on windows with DMD and LLDB
Oct 09
Andre
3 days ago
Andre Pany
October 09

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é

October 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.

October 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:

>

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.

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é

3 days ago

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é