Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6305 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I've inherited an old FMP application with multiple scripts.

One of them (I suspect) is causing the app and FMP itself (actually v. 6.0 - Yes, I know!) to freeze; I want to try and capture at least entry and exit into each script and subscript called by the app to a log - so that at least I can identify any bugs in the script causing the freeze.

What's the script syntax, please, for a line that will, for example, write to a text file (I'm on Tiger, 10.4.10) something like:

print [entering script 1a]

...

script lines

...

print [completed script 1a]

etc.

Any other suggestions for ways to log script execution gratefully received. Thanks!

Posted

"What's the script syntax, please, for a line that will, for example, write to a text file"

There isn't one in FMP. Instead, write data to a field using Set Field[]. Alternatively, pepper the scripts with pause steps.

Your best bet is to get a copy of FMP 6.0 Developer and run the script debugger.

  • Newbies
Posted

Vaughan,

Thanks. In fact I suspect that there's no bug in the script itself.

The freeze I'm experiencing is, I think, caused by something else (network?, data corruption?, a plugin?).

It's a web publishing application that runs unattended overnight so pauses won't help: what I need is a way to log as each of the scripts and subscripts has been entered and exited so that I can find which one if causing the failure.

How could I do that with Set Field[]: since FMP freezes completely, what I must do is write just those simple 'I'm here' and 'Now I'm here' - ideally to an external text file.

There isn't one in FMP. Instead, write data to a field using Set Field[]. Alternatively, pepper the scripts with pause steps.

Your best bet is to get a copy of FMP 6.0 Developer and run the script debugger.

This topic is 6305 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.