On Wed, 19 Dec 2007 11:28:09 +1100 John <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > On Wed, 19 Dec 2007 10:25:51 +1100 > > John <[EMAIL PROTECTED]> wrote: > > > > > >> Hi all, > >> > >> Using gdb from the lazarus (recent SVN) IDE: > >> > >> I have fpc compiled (from SVN) with the OPT='-gl' switch, and I > >> can trace into .pas & .pp source in fpc units OK, but it doesn't > >> find .inc files. "The file "something.inc" was not found, do you > >> want to find it yourself ?". If I do, it then traces into it. > >> Sometimes if a .inc file is already open in the editor, it is > >> found, but I think not always. > >> > >> Is there some switch or setting or other incantation that lets it > >> find the .inc files itself ? > >> > > > > The include paths in the compiler options should be enough. > > Otherwise you found a bug. > > > > Mattias > I don't have anything set there - I was wondering about that. Does > "include paths" refer specifically to .inc files, or is it extra > paths of any source to include in the search path ? If it is the > former, do I have to add every place for .inc files down the fpc > source tree ? (That seemed a bit daunting, so I didn't try it !)
http://wiki.lazarus.freepascal.org/index.php/IDE_Window:_Compiler_Options#Paths Paul is right: Only add your own include directories. Don't add the FPC or LCL include directories. I guess for the FPC include files the IDE must search the FPC sources. Can you create a feature request in the bug tracker? For the time being, the only solution is: you must search the FPC file yourself and add it to the debug path. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
