Author Topic: Something is wrong with the debugger  (Read 4053 times)

Offline klassikarn

  • Single posting newcomer
  • *
  • Posts: 3
Something is wrong with the debugger
« on: December 11, 2012, 10:21:42 am »
Hi all!

First of, I really tried to watch through the forum, but could not find my particulare problem, but if it was out there, sorry I did not find it.

My problem is that I can not run Code::block with the debugger on my laptop, while it works with my stationary.
I use google drive for saving the files, so that I can work with my projects, regardless to which computer I am on.

BUT, for some reason the debugger does not work on my laptop.

The program runs perfectly when I press F9, but if I press F8, this error occured.

Compiling: main.cpp
mingw32-g++.exe: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

It is not even whining about the gdb.exe, so it seems like when I try to run the debugger it links to somewhere else ?
I tried to look through the program to find some kind of linking, but could not find it (except in settings/compiler and debugger/global compiler settings/toolchain executables/)
And I have installed the debugger, and it is situated in C:\program files\codeblocks\MinGW\bin (gdb.exe)
And that is where the "Compiler's installation directory" is linked to (except the bin then ofcourse).

The selected compiler I use is GNU GCC Compiler and my computer is running win xp.

Can there be somekind of problem that I try to run them on both computers (not on the same time ofcourse)
I thought that you could have the settings in the program, not the file ?
And since the build do work, I do not know why the debugger does not.

I tried to add additional path under toolchain executables but nothing changed.
And I've googled the internet and this forum, without finding someone with the same problem.
So as a last resort I signed up and made this post =)

Please tell me if you need some additional information to look into the matter.

All help is warmly welcome =)

Best Regards

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13153
    • Travis build status
Re: Something is wrong with the debugger
« Reply #1 on: December 11, 2012, 10:34:55 am »
Can you try first with an C::B 12.11 and newer GCC and GDB?

p.s. Please read the rules and provide the required information. Currently it is missing.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Something is wrong with the debugger
« Reply #2 on: December 11, 2012, 10:42:45 am »
I guess C::B tries to run MinGW, because "Auto build project if it is not uptodate" is checked in debugger settings.
This key is named slightly different in older revisions of C::B, if I remember correctly (can not check nat the moment, not at home).

Offline klassikarn

  • Single posting newcomer
  • *
  • Posts: 3
Re: Something is wrong with the debugger
« Reply #3 on: December 11, 2012, 10:43:28 am »
Sorry oBFusCATed,

But I have read them, and I am not totally sure what you had in mind ?

I'm running the version 10.05 of codeblocks and have 6.8 gbd.

Could you please be more specific in what I have missed out ?

Best Regards

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Something is wrong with the debugger
« Reply #4 on: December 11, 2012, 11:11:02 am »
Could you please be more specific in what I have missed out ?
E.g. posting which version of C::B you use, which gdb-version, which MinGW version ...

Offline klassikarn

  • Single posting newcomer
  • *
  • Posts: 3
Re: Something is wrong with the debugger
« Reply #5 on: December 11, 2012, 01:30:11 pm »
I'm sorry if I missed that part out when I read the rules :/

As I said, I have 10.05 and gbd 6.8, and MinGW-version I am not sure how I check that ?
(edit: if not this is what you mean <Version id="binutils-2.19.1" default="true" name="MinGW Stable: 2.19.1" unsize="21547030" prev="true"> )

I think my basic problem comes from that I also have visual studio also installed on my laptop, but not on my stationary one.
And that it somehow intervines.

Otherwise my laptop and stationary is close to identical.

You said something about "auto bild project if it is not uptodate" Jens.
The only boxes I have marked is the one which gives -g, and -wall.
That said "Produce debbuging symbols" and "Enable all compiler warnings".

In worst case I guess I have to work with visual studio on my laptop, and codeblocks on my stationary.
But I would rather use codeblock on both =/

Best Regards
« Last Edit: December 11, 2012, 01:32:40 pm by klassikarn »

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Something is wrong with the debugger
« Reply #6 on: December 11, 2012, 01:48:55 pm »
The setting is in "Settings  -> Copiler and Debugger".
And it would explain why g++ is called, but not why it fails.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13153
    • Travis build status
Re: Something is wrong with the debugger
« Reply #7 on: December 11, 2012, 02:22:56 pm »
Can you try first with an C::B 12.11 and newer GCC and GDB?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]