Author Topic: Problem Debugging with Code:Block  (Read 3780 times)

Offline Youngsir

  • Single posting newcomer
  • *
  • Posts: 3
Problem Debugging with Code:Block
« on: May 01, 2011, 06:48:48 am »
Hi,

I have just downloaded Code::Blocks for Windows 64 bit OS. I tried to debug a code, but I get the error message as shown in the attached image file.

So, I followed the instructions in the error message. I went into the "Toolchains Executables" tab, and, in the debugger textbox, it has the debugger file name "gdb.exe". I am not sure if this correct, and if it should be changed.

Please advise.

Thanks.
« Last Edit: May 01, 2011, 09:07:54 am by MortenMacFly »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Problem Debugging with Code:Block
« Reply #1 on: May 01, 2011, 09:09:00 am »
I cannot see the error message as the image is too big (I've removed it to comply with our forum policies therefore). However, did you read the NOTE in red and verified that this is true?
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

Offline Youngsir

  • Single posting newcomer
  • *
  • Posts: 3
Re: Problem Debugging with Code:Block
« Reply #2 on: May 01, 2011, 04:27:05 pm »
Attached is the pdf file containing the images that I mentioned in my original post.

In response to your reply, I am not sure what is the red note you are referring to.

Please advise.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Problem Debugging with Code:Block
« Reply #3 on: May 01, 2011, 04:37:44 pm »
Attached is the pdf file containing the images that I mentioned in my original post.

In response to your reply, I am not sure what is the red note you are referring to.

Please advise.
The red note is the text written in red, beginning with "Note:".
Should not be too hard to find.

gdb.exe has to be in the bin-folder of your MinGW installation.
If it's not there you have to install it.

Offline Youngsir

  • Single posting newcomer
  • *
  • Posts: 3
Re: Problem Debugging with Code:Block
« Reply #4 on: May 01, 2011, 04:56:58 pm »
Thanks, I clicked on the auto-detect button, and it found the installation directory. I am now able to compile the code.

Thanks for the quick responses.