You are here: Using BML > Function Editor > Debugger Variations

Debugger Variations

OVERVIEW

Use the Debugger tab to debug advanced functions. Test code in the Debugger by providing different values for the attributes/parameters as inputs. The Debugger varies quite a bit depending on where you are in the application.

ADMINISTRATION

ClosedConfiguration Debugger

Begin in the Input section, located in the upper left-hand corner for the Function Editor.

You should have already added your attributes/parameters under the Attributes tab. What you have added will appear in the first column under Action Inputs.

  1. Select the corresponding cell in the Values column and choose a value for the attribute, either by using the drop-down OR by typing a value into a cell.
  2. Click Run to run the function. The result appears in the Console section.
  3. Click Clear to remove the Values for your attribute(s) and clear the Console.
  4. Click Expand Console to hide the Input section of the Debugger and expand the Console section.

ClosedCommerce Debugger

This Debugger requires users to select at least one variable and then use a Transaction ID number to import the Values for each attribute you selected. You could also manually enter these values. For more information about Transaction IDs, see Finding the Transaction ID.


ClosedCommerce Library

There are a number of sub-headings that can be used under the Commerce Library Debugger tab. For more information, see Library Functions.

Test Script: Provides a way to test a BML Library function when array type attributes are input parameters. Within the Test Script, you can populate your own complex data objects and pass it to the library functions to analyze the results. Test Scripts can also be used to compute multiple iterations of the library functions and print each.

Example of Test Script:

  1. Create values for the parameters used in this function.
  2. View the return statement, it is written as follows: return.util.function_name(parameters).


ClosedFinding Transaction ID

In order to use the Debugger in Commerce, you must reference a quote.

  1. Go to the Quote Manager.
  2. Select a pending quote and its quote number.
  3. Select View > Source under your address bar.
  4. Type CTRL + F to open a Find box.
  5. Search for "id" to locate the Transaction ID.

For more information on finding transaction IDs, see Finding the Transaction ID.


NOTES

RELATED TOPICS

Related Topics Link IconSee Also