Author Topic: Debugging in CodeBlock  (Read 5386 times)

Offline puneet_m

  • Multiple posting newcomer
  • *
  • Posts: 73
Debugging in CodeBlock
« on: August 23, 2007, 11:15:31 pm »
How do we debug in CodeBlock. I am using mingw gcc compiler. When I go to Debug->Start. It says go to Settings/Compiler and debugger, switch to programs tab and select the debugger program. But when I go over there, it does not show me any such option there?

Thanks


Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Debugging in CodeBlock
« Reply #1 on: August 23, 2007, 11:34:42 pm »
"Toolchain executables"
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline puneet_m

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: Debugging in CodeBlock
« Reply #2 on: August 23, 2007, 11:54:19 pm »
Over there debugger is set as gdb.exe. So what do I need to do so that I can use the debugger.

Thanks

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Debugging in CodeBlock
« Reply #3 on: August 24, 2007, 12:10:03 am »
1. Make sure you actually have the debugger installed.
2. Press the "Debug" button.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline puneet_m

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: Debugging in CodeBlock
« Reply #4 on: August 24, 2007, 12:36:11 am »
How can I install debugger?

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: Debugging in CodeBlock
« Reply #5 on: August 24, 2007, 02:44:23 am »
How can I install debugger?

Well here you can download the debugger - http://sourceforge.net/project/showfiles.php?group_id=2435

The file that you should download is gdb-6.6.tar.bz2 and extract it to the bin directory where you have mingw installed.

Always visit http://mingw.org for all the tools concerning gcc for windows and to familiarize your self with the mingw/gcc building system.