Can't get ddbg to work in Code::Blocks

Patrick Byrne pbyrne at frontier.co.uk
Fri Mar 30 07:06:34 PDT 2007


Jascha Wetzel wrote:
> did you check "settings > compiler and debugger > debugger settings >
> display debugger's log"?
> this enables the "Debugger (debug)" tab.

I did, I did!

Perhaps this is broken in the latest CB build (downloaded today).

>> (gdb) break main
>> Breakpoint 0 at 0x00000000
> 
> break only accepts file:line locations, yet.
> try somehting like "break main.d:1".

Ok, working now, ta:

C:\d\hworld>\dmd\bin\ddbg_gdb.exe bin\Debug\hworld.exe
Ddbg v0.0.5.3 alpha - D Debugger
Copyright (c) 2007 Jascha Wetzel
http://ddbg.mainia.de/

(gdb) break hello.d:1
Breakpoint 0 at 0x00402010
(gdb) run
..
msvcrt.dll  loaded
→→hello.d:3:0:begmidl:0x00402010
(gdb) next
→→hello.d:5:0:begmidl:0x00402014...

> also you will have to "run" the process before using "next" (i will fix
> that).

great!

> check out http://ddbg.mainia.de/doc.html for an example debug session
> with the Ddbg syntax. i'd recommend using Ddbg syntax on the command
> line, since Ddbg's GDB mode isn't as verbose.

....but Code::Blocks will need to work with the gdb syntax, I presume?

-P


More information about the Digitalmars-d-debugger mailing list