• Output a debug message to the user interface. Debug messages are typically used during development and troubleshooting to provide detailed information about script execution and calculations.

    Parameters

    • message: any

      The debug message to display to the user

    • Optional location: string

      Where to show the message, one of MessageArea; shown everywhere when omitted

    Returns void

    Example

    debug("Calculating price for item: " + Item.ProductName);
    debug("Base price: $" + Item.Price + ", Quantity: " + Item.Quantity);

    Example

    debug("Tier lookup took the fallback path", Constants.MessageArea.AdminArea);
    

Generated using TypeDoc