www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - Is there an IDE with a working graphic debuger under Linux ?

reply lalebarde <l.alebarde2 free.fr> writes:
Hello,

I want to start a new project with D. I have installed both dmd and gdc under
my gentoo (gcc with use flag D for the last). From my research, it appears only
codeblocks and eclipse deal with D. I have installed codeblocks. D projects are
proposed,  there are configurations both for dmd and gdc. It sounds ok.

At compilation, only gdc is working. It is not an issue for me since at this
step, I don't care using one or the other.

Debugging fails. I made some research on the web, found the patches for gdb
6.3, 6.4, 6.5 at http://dsource.org/projects/gdb-patches/, modify the gdb6.5-r2
 ebuild to apply the 6.5 patch (inspired from
http://www.dsource.org/forums/viewtopic.php?t=979), force this release to be
compiled. I checked the patches are correctly applyed.

Debugging behave and fails the same : the line where I set a breakpoint is not
highlighted when the program is stopped there. Running line by line does not
work (behave like a resume), some breakpoints are not seen.

I spent more time on the web and found here -
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.deb
gger&article_id=247 -  that codeblocks have problems with d debugger.

So, my question is : What IDE most suit D, with working graphic debugger ?
Aug 29 2007
next sibling parent reply Jascha Wetzel <firstname mainia.de> writes:
lalebarde wrote:
 Hello,
 
 I want to start a new project with D. I have installed both dmd and gdc under
my gentoo (gcc with use flag D for the last). From my research, it appears only
codeblocks and eclipse deal with D. I have installed codeblocks. D projects are
proposed,  there are configurations both for dmd and gdc. It sounds ok.
 
 At compilation, only gdc is working. It is not an issue for me since at this
step, I don't care using one or the other.
 
 Debugging fails. I made some research on the web, found the patches for gdb
6.3, 6.4, 6.5 at http://dsource.org/projects/gdb-patches/, modify the gdb6.5-r2
 ebuild to apply the 6.5 patch (inspired from
http://www.dsource.org/forums/viewtopic.php?t=979), force this release to be
compiled. I checked the patches are correctly applyed.
 
 Debugging behave and fails the same : the line where I set a breakpoint is not
highlighted when the program is stopped there. Running line by line does not
work (behave like a resume), some breakpoints are not seen.
 
 I spent more time on the web and found here -
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.deb
gger&article_id=247 -  that codeblocks have problems with d debugger.
 
 So, my question is : What IDE most suit D, with working graphic debugger ?

the problems codeblocks has concern the windows D debugger ddbg only. on linux you can try http://www.zerobugs.org/
Aug 29 2007
parent lalebarde <l.alebarde2 free.fr> writes:
 the problems codeblocks has concern the windows D debugger ddbg only.
 on linux you can try http://www.zerobugs.org/

Hello, Thanks for your reply. Unfortunatly, the D demangler patch for zero seems to be far from usable : http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.debugger&artnum=17 Another solution for Linux ?The lack of graphic debuger would be actually a showstopper for me. Unfortunatly, I am not a geak.
Aug 29 2007
prev sibling parent reply Ary Manzana <ary esperanto.org.ar> writes:
You can try Descent, which works with GDB for linux:

http://dsource.org/projects/descent

lalebarde escribió:
 Hello,
 
 I want to start a new project with D. I have installed both dmd and gdc under
my gentoo (gcc with use flag D for the last). From my research, it appears only
codeblocks and eclipse deal with D. I have installed codeblocks. D projects are
proposed,  there are configurations both for dmd and gdc. It sounds ok.
 
 At compilation, only gdc is working. It is not an issue for me since at this
step, I don't care using one or the other.
 
 Debugging fails. I made some research on the web, found the patches for gdb
6.3, 6.4, 6.5 at http://dsource.org/projects/gdb-patches/, modify the gdb6.5-r2
 ebuild to apply the 6.5 patch (inspired from
http://www.dsource.org/forums/viewtopic.php?t=979), force this release to be
compiled. I checked the patches are correctly applyed.
 
 Debugging behave and fails the same : the line where I set a breakpoint is not
highlighted when the program is stopped there. Running line by line does not
work (behave like a resume), some breakpoints are not seen.
 
 I spent more time on the web and found here -
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.deb
gger&article_id=247 -  that codeblocks have problems with d debugger.
 
 So, my question is : What IDE most suit D, with working graphic debugger ?
 
 

Aug 29 2007
parent reply lalebarde <l.alebarde2 free.fr> writes:
Thank you Manzana. I have installed Eclipse (IDE), Descent (D source editor
eclipse plugin) and DSSS (build engine). At this point, it is alright. I can
make a D project, edit it (Descent looks great), and build it, both with GDC or
DMD.

I then installed gdb 6.5 with the D gdb patch 6.5 (cf
http://dsource.org/projects/gdb-patches/).

Debugging does not work for me, either with GDC or DMD. I compile with -g to
have the symbols. But no symbol seems to be loaded.

Does it work for someone ?



Ary Manzana Wrote:

 You can try Descent, which works with GDB for linux:
 
 http://dsource.org/projects/descent
 

Sep 03 2007
parent reply "Vladimir Panteleev" <thecybershadow gmail.com> writes:
On Mon, 03 Sep 2007 11:52:58 +0300, lalebarde <l.alebarde2 free.fr> wrote:

 Thank you Manzana. I have installed Eclipse (IDE), Descent (D source editor
eclipse plugin) and DSSS (build engine). At this point, it is alright. I can
make a D project, edit it (Descent looks great), and build it, both with GDC or
DMD.

 I then installed gdb 6.5 with the D gdb patch 6.5 (cf
http://dsource.org/projects/gdb-patches/).

 Debugging does not work for me, either with GDC or DMD. I compile with -g to
have the symbols. But no symbol seems to be loaded.

You have to specify -g during linking as well - although I think DSSS/Rebuild will do that automatically. Check the command line it passes to the linker. -- Best regards, Vladimir mailto:thecybershadow gmail.com
Sep 03 2007
parent Ary Manzana <ary esperanto.org.ar> writes:
Vladimir Panteleev escribio':
 On Mon, 03 Sep 2007 11:52:58 +0300, lalebarde <l.alebarde2 free.fr> wrote:
 
 Thank you Manzana. I have installed Eclipse (IDE), Descent (D source editor
eclipse plugin) and DSSS (build engine). At this point, it is alright. I can
make a D project, edit it (Descent looks great), and build it, both with GDC or
DMD.

 I then installed gdb 6.5 with the D gdb patch 6.5 (cf
http://dsource.org/projects/gdb-patches/).

 Debugging does not work for me, either with GDC or DMD. I compile with -g to
have the symbols. But no symbol seems to be loaded.

You have to specify -g during linking as well - although I think DSSS/Rebuild will do that automatically. Check the command line it passes to the linker.

Apart from that, yesterday I fixed some stuff regarding Descent with gdb. I'll test it some more, and probably make a maintenance release in these days (which will also have an Open Type dialog).
Sep 03 2007