www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - IntelliJ and MagoMI questions


IntelliJ supports as debugger GDB. Mago, the Visual Studio 
debugger plugin for D, comes also with an application MagoMI 
which is a GDB frontend for Mago.
I currently try to get MagoMI running with IntelliJ and face 
several issues. For these issues I would like to clarify whether 
there are bugs within MagoMI or bugs within IntelliJ Dlang plugin.

1) IntelliJ calls MagoMi with these commands

C:\D\tools\mago-mi.exe --interpreter=mi2
-break-insert -f C:/D/projects/magotest/source/app.d:6
file C:/D/projects/magotest/magotest.exe

First issue is, MagoMi does not know the "file" command but a 
command "-file-exec-and-symbols". Are these two commands 
comparable? Which command is correct?

2) Order of calling -break-insert

The breakpoint is only hit if the executable is specified before 
"-break-insert" is executed. Either by specifying the executable 
in the first line
"C:\D\tools\mago-mi.exe --interpreter=mi2 
or by calling command "-file-exec-and-symbols" before calling 
Is this a bug with MagoMI and the order should play no role or is 
this order important.

3) Level is missing in frame line while breakpoint is hit

When a breakpoint is hit, MagoMI sends this frame line:

IntelliJ throws an error because it expects an attribute "level" 
in this line. MagoMI has this attribute but does not add it in 
this specific case (Breakpoint hit). In other cases it adds the 
level to the frame line:


Is MagoMI right and the level should not be added in this case or 
is IntelliJ correct and the frame line must be available?

Kind regards
Jun 12 2018