spot_imgspot_img
3.1 C
London
Thursday, November 30, 2023
spot_img
HomeFileMaker Script Error Logging | DB Services

FileMaker Script Error Logging | DB Services



By
Austen Gren 

Posted on 
May 22nd, 2019 

in 
Free Downloads,

FileMaker

For many years FileMaker Server has automatically logged errors in server side scripts, but now with FileMaker 18 developers have to ability to log script errors client side in FileMaker Pro and Go, saving time troubleshooting issues with scripts. And with the new file manipulation script steps, developers can automatically import script error logs into a centralized table to quickly view errors across all clients.

A Simple-to-Use Script Step

Error logging can now be accomplished with a simple script step: Set Error Logging [ On/Off ].

Filemaker script error logging script step

And because you can control when error logging occurs you can prevent unnecessary log entries from being created. Additionally you can set up a “custom debug info” calculation, the result of which will be added to each log entry of the script allowing developers to log dynamic information the moment an error occurs.

The Log File

Filemaker script error log

When enabling error logging in a script, FileMaker will create a single file named “ScriptErrors.log”, which will be created in the user’s Documents folder if it doesn’t already exist. Each log entry will include the following pieces of information: the name of the file, account, script, script step, error code, timestamp, session number, and custom debug information. Set Error Logging is currently only supported on FileMaker Pro and Go, not WebDirect, nor FileMaker Server.

Collecting Log Files

Filemaker script error log display

To really make these log files useful you should consider automatically importing them into a centralized table so the information is in one location and easily searchable by a developer. For example you could import the log every time a user closes the FileMaker application via the OnLastWindowClose trigger. Having an easily accessible error log can go a long way when something has gone wrong and troubleshooting becomes necessary.

Conclusion

Script error logging is no longer relegated to only FileMaker Server: it is now available in both FileMaker Pro Advanced and FileMaker Go, to help troubleshoot errors in client side scripting. In a future version of the FileMaker platform we would love the ability to enable or disable script error logging on FileMaker Server to prevent unnecessary log entires. In the mean time download the sample file to check out the client side script error log in action!

Did you know we are an authorized reseller for FileMaker Licensing?
Contact us to discuss upgrading your FileMaker software.

Download

Download the FileMaker Script Error Logging File

Please complete the form below to download your FREE FileMaker file.

Austen gren thumbnail
Austen Gren

An accommodating and supportive application developer, Austen places a high degree of value on accuracy and teamwork in producing excellent results for clients. His professional experience in a variety of industries contributes to his ability to design solutions that are practical as well as creative.



Source link

spot_img
spot_img
Filemaker Cloud Server
MC Services

explore more