Author Topic: Debbugger problem  (Read 5015 times)

george2515

  • Guest
Debbugger problem
« on: January 25, 2009, 08:11:33 pm »
I ve just installed cb 8.2 with compiler and debugger. Compiler works fine but the command (button) for debugger is constantly unavailable. I have also enabled "produce debugging symbol" and "compiler warnings" options as mentioned in http://forums.codeblocks.org/index.php?topic=4296.msg34198, and still debugging button is not available. So my question wood be what do i need to do to statr debugger? Just for the record, I have just stared programming, so i understand if you feel that this post is kinda noobish but the problem is driving me nuts...
Thanx in advance...

Offline ridge123321

  • Single posting newcomer
  • *
  • Posts: 3
Re: Debbugger problem
« Reply #1 on: January 27, 2009, 01:52:01 pm »
same problem for me...

Offline ridge123321

  • Single posting newcomer
  • *
  • Posts: 3
Re: Debbugger problem
« Reply #2 on: January 27, 2009, 03:29:36 pm »
can anyone help us?

joen

  • Guest
Re: Debbugger problem
« Reply #3 on: January 30, 2009, 05:17:49 am »
when you mean by debug do you mean the debug menu - Start (F8)

if so you may need to compile your code to be able to run/debug your code. hope this helps. :)

Offline ridge123321

  • Single posting newcomer
  • *
  • Posts: 3
Re: Debbugger problem
« Reply #4 on: January 30, 2009, 11:24:57 am »
screenshot of a problem (after compile)...

 :(

[attachment deleted by admin]
« Last Edit: January 30, 2009, 02:32:20 pm by ridge123321 »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Debbugger problem
« Reply #5 on: February 04, 2009, 11:34:45 am »
update to nightly build version.
And create a console project with wizard, then test to check the problem exists.
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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Debbugger problem
« Reply #6 on: February 04, 2009, 11:42:48 am »
Just a guess: do you have asingle file (without a project) ?

Then debugging is not supported.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Debbugger problem
« Reply #7 on: February 04, 2009, 11:48:05 am »
Just a guess: do you have asingle file (without a project) ?
Then debugging is not supported.
This is most likely it. I addition: Debugging in a path that contains non-English characters is a bad idea anyways - no matter what platform/debugger. A lot of trouble arises from such.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

remuar

  • Guest
Re: Debbugger problem
« Reply #8 on: February 06, 2009, 10:48:55 am »
... haven't solved my problem (sorry) after readind & trying all the answers so here again the question

 :lol: how to I get a debugging with a project I compiled with BCC55
the gdb complains "No symbol table is loaded. Use the "file" command... :(

every attemps to change all the option /-g, -m -v &&& didn't help so it seems I am missing something obviously trivial

BCC55 does not produce a symbol table or gbd doesn't find it why?


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Debbugger problem
« Reply #9 on: February 06, 2009, 11:00:07 am »
... haven't solved my problem (sorry) after readind & trying all the answers so here again the question

 :lol: how to I get a debugging with a project I compiled with BCC55
the gdb complains "No symbol table is loaded. Use the "file" command... :(

every attemps to change all the option /-g, -m -v &&& didn't help so it seems I am missing something obviously trivial

BCC55 does not produce a symbol table or gbd doesn't find it why?


Why do you hijack foreign threads ?

Why do you believe, that gdb (from MinGW) can work with bcc compiled files (Borland).

Use MinGW gcc and you can debug with gdb.