include problem

include problem

Postby fishy » Fri Jul 24, 2009 3:46 am

Code: Select all
; ------------------------------------------------------------------------------
; VTT system includes
; ------------------------------------------------------------------------------
#include <vtt/base/VTT_base.au3>

; ------------------------------------------------------------------------------
; All non case-files in Cases folder
; ------------------------------------------------------------------------------
; ------------------------------------------------------------------------------
; All case function files
; ------------------------------------------------------------------------------
#include <Cases/_preparation.au3>
#include <Cases/measurementSetupTest.au3>
#include <Cases/_finalization.au3>


the vtt/base/VTT_base.au3 makes a "StandaloneCall()" ( static function call ).
AutoIt executes it when including the base.
This function executes user functions ( that cases ) with "call(...)".
Debugger will run into the StandaloneCall, and then the problem: it does not open the CASES-Files beyond the standalone call.
AutoIt will find them an call them, but the debugger must be more "smart" and just open all available include files BEFORE doing anything executive...

if i would write the include with the CASES folders before the base include, then the debugger works, but then the base-globals are not known anymore to the case-functions.
fishy
 
Posts: 17
Joined: Tue Jun 02, 2009 7:42 am

Re: include problem

Postby thefoolonthehill » Sat Jul 25, 2009 11:48 am

Give me an example of this static function call. I search in the AutoIt help file, but did not find any reference to anything similar.

Thanks,

Steve
thefoolonthehill
Site Admin
 
Posts: 53
Joined: Thu Dec 18, 2008 3:45 pm

Re: include problem

Postby fishy » Mon Oct 26, 2009 10:54 am

Hey,

I checked your new 26 version.
It seems to work - partially..
I got a simple example of something I want to do in my framework.
( sending you the framework would be too much of files and needs more installations )

so a proof of concept is given by me in the zip file.

Start debugging main and also a single testfunc file.
It works the first time, the second debugger run it rans into an infinite include-looping.
Check the #include-once thingy...
Run main and testcase files with F5 under SciTE - you'll see, it will work.

targets:
- run and debug main file
- run and debug a testfunc file only. ( static 'standalone' calls are within the testfunc files )
within the real framework this is done by a function "standaloneCall()" that checks the @scriptName.
Attachments
debuggerFails.zip
(1.65 KiB) Downloaded 52 times
fishy
 
Posts: 17
Joined: Tue Jun 02, 2009 7:42 am

Re: include problem

Postby thefoolonthehill » Mon Oct 26, 2009 9:58 pm

Okay, I think i have it now. Works for both examples first time and subsequent times. Will include in 0.27.

Thanks,
Stumpii
thefoolonthehill
Site Admin
 
Posts: 53
Joined: Thu Dec 18, 2008 3:45 pm

Re: include problem

Postby fishy » Tue Oct 27, 2009 3:24 am

Wow, you're really amazing !

Up to now I had to implement a "workaround" and generated that incbase-file a second time within the testfunc folder with reduced include paths. Now this second file is not needed to be generated anymore.
That makes my framework less complex.

When do you think you can release a 0.27 (or above) Version ?
I need to know it for planning.

Great work.
Thanks a lot !

Fishy.
fishy
 
Posts: 17
Joined: Tue Jun 02, 2009 7:42 am

Re: include problem

Postby thefoolonthehill » Tue Oct 27, 2009 12:48 pm

Maybe a week (or two). I have redone the variables watch window so it needs some major work/testing.
thefoolonthehill
Site Admin
 
Posts: 53
Joined: Thu Dec 18, 2008 3:45 pm


Return to AutoIt Debugger

Who is online

Users browsing this forum: No registered users and 1 guest

cron