Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trapping a freeze error in a script

Featured Replies

  • Newbies

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!

"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.

  • Author
  • Newbies

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.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.