Brian Dunning's FileMaker Custom Functions

Debug ( )

Used to output environment data within a Show Dialog script step.

  Average rating: 4.2 (38 votes) Log in to vote

Matt Petrowsky   Matt Petrowsky - Show more from this author
ISO FileMaker Magazine
http://www.filemakermagazine.com

Share on Facebook Share on Twitter

  Sample input:
Debug ( )
  Sample output:
App Version = 9.03
Host Name = my_filemaker_server
Account = Admin
-----------------------------------
Script Param = some value
Script Result =
-----------------------------------
Last Error = 0
Last ODBC =
-----------------------------------
Layout = Customer Invoices
Layout Table = DATA_CUSTOMERS
-----------------------------------
Open Records = 0
Record Modified = 0
-----------------------------------
Active Field =
Active Field Table =
Active Layout Object =
-----------------------------------
Local time = 1/29/2008 12:17:53 PM
Host time = 1/29/2008 12:17:53 PM
-----------------------------------
$counter =

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

A very simple function which can be used while debugging scripts. Simply insert a Show Dialog within the script you are debugging and call the Debug() function to get details about the current environment.

 

Comments

Mike Beargie   Mike Beargie, MainSpring, Inc.
Jul 7, 2017
Note that Get(LastODBCError) will fail on filemaker 15+ as it has been replaced with the Get(LastExternalErrorDetail) function. Easy fix but something of note!
 
João Coutinho   João Coutinho
Nov 28, 2018
I add to the function

"Device = " & Get ( PersistentID ) & "" & ¶ &

Great help this CF.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: