Saving unwanted action option changes

Hi guys

This is something that has bitten me a couple of times so I thought I might ask about it.

I have scripts with BeforeAction VB code which configures actions based on FB variables that I pass through the command line doing scheduled builds i.e. debug vs release vs testcomplete enabled, etc. And that all works just peachy.

What has caught me out is that if I'm stepping through and debugging a script and I've executed the action code, and I then save the project whilst in the midst of debugging it, the actions current (i.e. munged from normal) settings are saved permanently into the script.

Am I doing something wrong here? Is there a FB config setting I should set to turn off this behaviour?

I'm current using FB 4 Pro, I just put through our upgrade to FB5 - it's been on my to-do list for a while...

 

 

Hi Paul,

Unfortunately, no. FinalBuilder doesn’t distinguish between properties that are changed programmatically and those which are changed by the user.

My suggestion would be to set the properties from script each and every time the action runs, that way those properties do not depend upon the current state of the project.

Regards,

Angus