Author Topic: Debugger path problems  (Read 5154 times)

Offline evolutional

  • Single posting newcomer
  • *
  • Posts: 6
    • http://www.evolutional.co.uk
Debugger path problems
« on: April 10, 2005, 12:20:14 pm »
My current project is separated like this:

/
--(output & data files)
--/src
----(.cpp files)
----(CBP project)
--/include
----(.h files)

Some of my header files contain inline code that I need to debug, however when invoking GDB I get the error from the debugger:

Starting debugger: done
No source file named ..\\include\\game_interpanimator.h.
error

Basically, it seems like I can't debug any files not inside the directory that my CBP file is located. Can someone give me any tips on how to rectify this?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Debugger path problems
« Reply #1 on: April 10, 2005, 01:31:36 pm »
This has been fixed in CVS. The upcoming release (expected this week) has many improvements/bug-fixes, including this :)

Yiannis.
Be patient!
This bug will be fixed soon...

Anonymous

  • Guest
Debugger path problems
« Reply #2 on: April 13, 2005, 04:11:42 pm »
Brilliant. You're doing some excellent work Yiannis.

-evolutional

developer

  • Guest
Debugger path problems
« Reply #3 on: May 07, 2005, 05:33:24 am »
Not doubt a great work.
But I'm using the Code::Blocks version 1.0-beta7 and it still has this (or a similar) problem.
I have my project seperated exactly in the same style /src /include and when I set a breakpoint in one of those files it gives me that same msg  but with the / slahes (Win32)
The only way to debug is to remove all files from the project and add them again in the "main" dir. :S
Any help?
Thanks

Offline EricBurnett

  • Multiple posting newcomer
  • *
  • Posts: 20
    • http://
Debugger path problems
« Reply #4 on: May 08, 2005, 08:51:09 pm »
There are two issues that this could be. One is the path problem...I will be putting out a patch for that today (if it passes inspection!). The other is the question of what target it is in. For instance, you will get that message if you try to debug compilergcc.cpp, but chose the main codeblocks target (src). Since that target does not include the file, it will not be found.

Anonymous

  • Guest
Debugger path problems
« Reply #5 on: May 10, 2005, 04:35:17 am »
Guess it didn't pass inspection?

Anonymous

  • Guest
Debugger path problems
« Reply #6 on: May 10, 2005, 07:09:13 am »
I've got the debugger working for me now by closing code::blocks, doing a search-and-replace to change src\ to src/ in my .cbp file, and then by not using 'run to cursor' (breakpoints seem to work now, but run to cursor doesn't).

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Debugger path problems
« Reply #7 on: May 10, 2005, 08:04:26 am »
Quote from: Anonymous
Guess it didn't pass inspection?

And what makes you say that? Eric's patch (along with some other improvements) was applied in CVS yesterday :)

Yiannis.
Be patient!
This bug will be fixed soon...