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
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!
 

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.

Under construction. Email me your wish list for improvements.