Author Topic: Windows XP SP2 - Debugger - Watches - C::B  (Read 4180 times)

Offline Ditos

  • Single posting newcomer
  • *
  • Posts: 4
Windows XP SP2 - Debugger - Watches - C::B
« 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Windows XP SP2 - Debugger - Watches - C::B
« Reply #1 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


C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Ditos

  • Single posting newcomer
  • *
  • Posts: 4
Re: Windows XP SP2 - Debugger - Watches - C::B
« Reply #2 on: October 30, 2008, 07:30:18 pm »
i installed DevC++. Also downloaded version of codeblocks with MinGW but its not working tho

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Windows XP SP2 - Debugger - Watches - C::B
« Reply #3 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
« Last Edit: October 30, 2008, 11:35:12 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Ditos

  • Single posting newcomer
  • *
  • Posts: 4
Re: Windows XP SP2 - Debugger - Watches - C::B
« Reply #4 on: October 31, 2008, 04:41:20 pm »
Yea, as debbuger i have gdb.exe. Its located in mingw folder

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Windows XP SP2 - Debugger - Watches - C::B
« Reply #5 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Ditos

  • Single posting newcomer
  • *
  • Posts: 4
Re: Windows XP SP2 - Debugger - Watches - C::B
« Reply #6 on: October 31, 2008, 10:28:02 pm »
version of gdb is 6.7.50

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Windows XP SP2 - Debugger - Watches - C::B
« Reply #7 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.