www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - debuggers in IDE (IntelliJ)

reply Dinich Tibs <dinichtibs gmail.com> writes:
I am new D, I love it, I want to promote it to big software 
projects.

I cannot figure out how to get debuggers to work with 
IntelliJ/Clion, Atom, VisualStudio.
I can get the code to compile and execute.

LLDB works well as a debugger, is there a way to make it work 
with IntelliJ?

In my opinion, IDE support is what is holding back D from 
replacing C++.
Nov 20 2018
parent reply Andre Pany <andre s-e-a-p.de> writes:
On Tuesday, 20 November 2018 at 17:15:47 UTC, Dinich Tibs wrote:
 I am new D, I love it, I want to promote it to big software 
 projects.

 I cannot figure out how to get debuggers to work with 
 IntelliJ/Clion, Atom, VisualStudio.
 I can get the code to compile and execute.

 LLDB works well as a debugger, is there a way to make it work 
 with IntelliJ?

 In my opinion, IDE support is what is holding back D from 
 replacing C++.
IntelliJ (and I think that is also true for Visual Studio Code) can use any debugger which speaks Gdb MI. That is of course true for GDB, but also e.g. the visual studio debug enngine Mago has a Gdb MI wrapper. If LLDB also has a Gdb MI interface or someone created a wrapper it can be used too. Kind regards André
Nov 21 2018
parent Kimon Kontosis <kimon.kontosis gmail.com> writes:
On Thursday, 22 November 2018 at 05:02:46 UTC, Andre Pany wrote:
 On Tuesday, 20 November 2018 at 17:15:47 UTC, Dinich Tibs wrote:
 I am new D, I love it, I want to promote it to big software 
 projects.

 I cannot figure out how to get debuggers to work with 
 IntelliJ/Clion, Atom, VisualStudio.
 I can get the code to compile and execute.

 LLDB works well as a debugger, is there a way to make it work 
 with IntelliJ?

 In my opinion, IDE support is what is holding back D from 
 replacing C++.
IntelliJ (and I think that is also true for Visual Studio Code) can use any debugger which speaks Gdb MI. That is of course true for GDB, but also e.g. the visual studio debug enngine Mago has a Gdb MI wrapper. If LLDB also has a Gdb MI interface or someone created a wrapper it can be used too. Kind regards André
Hi, I have created a modification of one known wrapper (freedib/lldbmi2) to make it work with the D plugin of Intellij. This makes it somehow possible to debug D in OS-X. Basic things have only been tested so far. Link: https://github.com/kkontosis/lldbmi2
Dec 04 2018