www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



digitalmars.D.debugger - [DDBG] How to get it to work with CodeBlocks?

↑ ↓ ← Philippe C-P <philly_dilly hotmail.com> writes:
code:

class MyClass
{
    this()
    {
        this._MyValue = 3;
    }
    public int _MyValue;
    public uint myOtherValue = 4;
};

int main(char[][] args)
{
    MyClass myClass = new MyClass();
    printf("_myValue = %d", myClass._MyValue);
    printf("hello world\n");
    printf("args.length = %d\n", args.length);
    for (int i = 0; i < args.length; i++)
	printf("args[%d] = '%s'\n", i, cast(char *)args[i]);
    return 0;
}

When I put the cursor on myClass in the first printf, it shows me the symbols
for MyClass but the values are wrong. When i put the cursor on _MyValue, it
says Unknown Symbol, what am i doing wrong?

I am using:
- nightly build of codeblocks from August 2, 2007
- Dmd version 2.003
- Ddbg version 0.10 Beta
- I added "-g" to linker options (and compiler)
- My toolchain executable for debugger is ddbg_gdb.bat

Platform:
Windows Xp
Athlon 64


Thanks,
Phil
Aug 04 2007
↑ ↓ Jascha Wetzel <"[firstname]" mainia.de> writes:
codeblocks has a couple of problems with the debugger interfacing. if 
you try using ddbg from the command line it works as expected.

Philippe C-P wrote:
 code:
 
 class MyClass
 {
     this()
     {
         this._MyValue = 3;
     }
     public int _MyValue;
     public uint myOtherValue = 4;
 };
 
 int main(char[][] args)
 {
     MyClass myClass = new MyClass();
     printf("_myValue = %d", myClass._MyValue);
     printf("hello world\n");
     printf("args.length = %d\n", args.length);
     for (int i = 0; i < args.length; i++)
 	printf("args[%d] = '%s'\n", i, cast(char *)args[i]);
     return 0;
 }
 
 When I put the cursor on myClass in the first printf, it shows me the symbols
for MyClass but the values are wrong. When i put the cursor on _MyValue, it
says Unknown Symbol, what am i doing wrong?
 
 I am using:
 - nightly build of codeblocks from August 2, 2007
 - Dmd version 2.003
 - Ddbg version 0.10 Beta
 - I added "-g" to linker options (and compiler)
 - My toolchain executable for debugger is ddbg_gdb.bat
 
 Platform:
 Windows Xp
 Athlon 64
 
 
 Thanks,
 Phil

Aug 06 2007
↑ ↓ → lalebarde <l.alebarde2 free.fr> writes:
 codeblocks has a couple of problems with the debugger interfacing. if 
 you try using ddbg from the command line it works as expected.
 

Aug 29 2007