Hello Steve,
I found a little Problem when using cascaded includes.
( so far I "understood" that the debugger needs the <> signs instead of "" ... is it thought to be fixed or want you to leave this behaviour ? - I have no problem with it, but want to know if you plan to "change" this in future... )
in SciTE and AutoIt it is possible to do something like this:
-----------
main.au3:
-----------
#include<myIncludeFolder/myIncludeFile1.au3>
-----------
myIncludeFolder/myIncludeFile1.au3:
-----------
#include<myGlobals.au3> ; this is not in autoit's include, but on "current script's path"...
-----------
myIncludeFolder/myGlobals.au3:
-----------
; this is just a global file example...
Global $a=10
The debugger tells me not to find "myGlobals"... sure, because the debugger includes myIncludeFolder/myIndludeFile1.au3
- this is correct so far... but now in scite and autoit the current "working" directory also changes while this include is done.
but the debugger keeps it's debugging script path, so sure he will not find myGlobals.au3 "beside" the main.au3
the debugger has to change temporarily into the folder where it includes something (in this case: myIncludeFolder).
can you please fix this behaviour ?
I really need to debug complex structured project files that have to contain relative include paths.
I can not include all files from within one main - because it's a modular project and I do not know what "modules" are
needed in the main. The module itself includes the files it needs.
well the only thing that worked so far, is to "deploy" or copy the include files into the autoit's include folder, e.g.
c:\autoit\include\my\base
then all includes in the modules can be made "absolute" in relation to the autoit include base:
e.g.
myModule1.au3
#include <my/base/doing.au3>
#include <my/base/ding.au3>
myModule2.au3
#include <my/base/dang.au3>
well this is ok so far, but its a bit "tricky" while developing and debugging i need to copy the include files from the deploy folder into the local folder - then debugger will find it. but in scite Alt+i will jump into the autoit directory.
so its dangerous to work on the "wrong" file then.
After debugging i have to deploy the local files back to the autoit include folder so scite shows again the changes files and i get what i really see =)
I think it's not that much effort to support that "relative" including.
I think you just need to change into the directory where the current loaded script is located, and when you recognize an include, you jump into the path relative to the current "loaded"/"active" script path.
ps: please also keep in mind:
you grab all files you find and put them into your debug folder... use unique namings there may be same named include-files:
e.g.:
#include <myBase/lib/modules.au3>
#include <myBase/lib2/modules.au3>
Please tell me when you have done a new version.
Best regards,
Fishy.
