Author Topic: Can't enable debugger  (Read 13184 times)

Offline gaualex

  • Single posting newcomer
  • *
  • Posts: 5
Can't enable debugger
« on: November 12, 2010, 03:43:09 am »
Hi all,

I cannot manage to enable the debugger.

I uninstalled and reinstalled everything and it still does not work.  Moreover, all the "Toolchain executables" are present in the "bin" directory.

Thanks in advance

Here is a screen grab showing what the problem is:


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can't enable debugger
« Reply #1 on: November 12, 2010, 04:10:18 am »
suppose you use gdb under windows.
So, where is your gdb.exe? did you correctly configured it in:

compiler and debugger setting dialog->program files->debugger

then, it should be "gdb.exe" there.


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.

Offline gaualex

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't enable debugger
« Reply #2 on: November 12, 2010, 04:22:36 am »
Hi,

Thanks for the quick reply.

Yes I am on Windows and more precisely on Win7 x64.

But like I wrote, all the "Toolchain executables" were checked and are in the bin directory including gdb.exe

Thanks

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can't enable debugger
« Reply #3 on: November 12, 2010, 04:49:41 am »
Hi,

Thanks for the quick reply.

Yes I am on Windows and more precisely on Win7 x64.

But like I wrote, all the "Toolchain executables" were checked and are in the bin directory including gdb.exe

Thanks
what is the  value in:
compiler and debugger setting dialog->Global compiler setting->compiler's installation directory
?

Can you directly run the gdb.exe from the window command line?




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.

Offline gaualex

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't enable debugger
« Reply #4 on: November 12, 2010, 04:58:43 am »



Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't enable debugger
« Reply #5 on: November 12, 2010, 07:21:56 am »
Do you use a project ?

Debugging single files without a project is not supported in C::B.

Offline gaualex

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't enable debugger
« Reply #6 on: November 12, 2010, 07:26:32 am »
Ok, it should be it.

I was trying to debug a single-file.

I will try in a project and come back.

Thanks

Offline gaualex

  • Single posting newcomer
  • *
  • Posts: 5
Re: Can't enable debugger
« Reply #7 on: November 12, 2010, 07:44:19 am »
It just worked, thanks a lot!!