Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Ditos on October 29, 2008, 08:57:04 pm

Title: Windows XP SP2 - Debugger - Watches - C::B
Post by: Ditos on October 29, 2008, 08:57:04 pm
I tried to find it on forum but didnt make it.

I have a problem. Im training to conquest from Programming C++. When some goes wrong in program it is good to look at watches to see what happens in it. In school on linux ubuntu it workes fine but at home when i place cursor anywhere, press go to cursor, i cant press next line or whatever. Everything is grey and i cant see watches.

Anyone knows whats the problem and how to solve it?
Title: Re: Windows XP SP2 - Debugger - Watches - C::B
Post by: stahta01 on October 30, 2008, 06:40:20 am
What compiler are you using?
Did you install an debugger?
Which one did you install?
What is the debugger version?
I think you need an 6 version of gdb to work with Code::Blocks.

Note: I do not use the debugger, so can not help you much more than this, but the gdb is not part of the standard MinGW installation; so, it is the common reason debugging does not work.

The next two reason gdb does not work is the "-g" compiler option  is not set.
Or, the "-s" compiler option  is set.

Tim S


Title: Re: Windows XP SP2 - Debugger - Watches - C::B
Post by: Ditos on October 30, 2008, 07:30:18 pm
i installed DevC++. Also downloaded version of codeblocks with MinGW but its not working tho
Title: Re: Windows XP SP2 - Debugger - Watches - C::B
Post by: stahta01 on October 30, 2008, 11:33:38 pm
Did you install the debugger gdb.exe or not?

In other words does gdb.exe exist in the MinGW/bin folder?

Tim S
Title: Re: Windows XP SP2 - Debugger - Watches - C::B
Post by: Ditos on October 31, 2008, 04:41:20 pm
Yea, as debbuger i have gdb.exe. Its located in mingw folder
Title: Re: Windows XP SP2 - Debugger - Watches - C::B
Post by: stahta01 on October 31, 2008, 09:03:53 pm
Yea, as debbuger i have gdb.exe. Its located in mingw folder

What is the gdb.exe version returned by
Code
gdb.exe -v

IIRC, The 5.x versions do not work well with Code::Blocks.
The newer 6.x version had someone say it failed to work.

Tim S
Title: Re: Windows XP SP2 - Debugger - Watches - C::B
Post by: Ditos on October 31, 2008, 10:28:02 pm
version of gdb is 6.7.50
Title: Re: Windows XP SP2 - Debugger - Watches - C::B
Post by: ollydbg on November 27, 2008, 05:37:07 pm
Did you get the solution?
I'm using in windows XP too, but the gdb works fine. I just installed the bundled mingw version.