Code::Blocks Forums
User forums => Help => Topic started by: evolutional 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?
-
This has been fixed in CVS. The upcoming release (expected this week) has many improvements/bug-fixes, including this :)
Yiannis.
-
Brilliant. You're doing some excellent work Yiannis.
-evolutional
-
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
-
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.
-
Guess it didn't pass inspection?
-
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).
-
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.