Debug flags
In this documentation you will find all debug flags Front-Commerce provides.
How to use
Debug flags enable specific logs in Front-Commerce, helping developers to debug
issues or understanding application behavior. To enable a debug flag, set the
DEBUG
environment variable in your project's root .env
file. The DEBUG
variable should be a comma-separated list of debug flags you wish to enable.
Wildcards can be used to enable multiple flags at once.
Example:
# .env
DEBUG="front-commerce:graphql,front-commerce:adobe-b2b*
You can also use debug flags in CLI.
Example:
# bash
$ DEBUG="front-commerce:axios" pnpm dev
Convention
Debug flags follow this naming convention:
front-commerce:<package>:<scope>:<componentName>
For cross-package features:
front-commerce:<featureName>
axios
- Debugs Axios HTTP requests and responses
front-commerce:adobe-b2b:company:companyCredit
- Debugs company credit data and company credit history
front-commerce:adobe-b2b:company:companyPermissions
- Debugs the company id and role of the current customer
front-commerce:adobe-b2b:store-credit:storeCreditLoader
- Debugs Store Credit
front-commerce:adyen:front-commerce:AdyenNotificationProcessor
- Debugs notifications when using Adyen as a Front-Commerce payment
front-commerce:adyen:front-commerce:loader
- Debugs when using Adyen as a Front-Commerce payment
front-commerce:adyen:magento2:AdyenAPI
- Debugs Adyen API version when using Magento 2 payment plugin
front-commerce:adyen:magento2:loader
- Debugs Adyen calls when using Adyen as a Magento 2 payment plugin
front-commerce:algolia:datasource
- Debugs the algolia configuration
- Debugs the algolia search query and results in the loader
- Returns the query parameters used in the query builder
front-commerce:algolia:magento2:algoliaConfigProvider
- Debugs the facets and the facets configuration when using Algolia with Magento 2 flavor
front-commerce:attraqt
- Debugs Attraqt API requests and responses
front-commerce:axios
- Debugs Authorization header when creating axios instance
- Debugs OAuth tokens
- Debugs errors when using `makeErrorLoggerInterceptor`
- Debugs rejectOnGraphQLErrors
front-commerce:cache
- Core : Debugs cache information
- Core : Debugs cache invalidation
- Core : Debugs the request's body
front-commerce:cache:cart
- Core : Cart cache informations for Magento 1, Magento 2 and Gezy
- Gezy : Debugs cart cache
- Magento 1 : Debugs cart cache
- Magento 2 : Debugs cart cache
front-commerce:cache:prismic
- Prismic : Debug Prismic cache operations
- Prismic : Debug cache errors
- Prismic : Debugs reference cache
front-commerce:cache:redis
- Core : Debugs Redis information (connection, invalidation, configuration)
front-commerce:cache:session
- Core : Debugs customer cache status and information for Magento 1 and Magento 2
- Magento 1 : Debugs session customer cache
- Magento 2 : Debugs session customer cache
front-commerce:cache:strategy
- Magento 1 : Debugs the per currency cache strategy
- Magento 1 : Debugs the per customer group cache strategy
- Magento 1 : Debugs the per customer tax zone cache strategy
- Magento 2 : Debugs the per admin role cache strategy
- Magento 2 : Debugs the per customer group cache strategy
- Magento 2 : Debugs the per customer tax zone cache strategy
front-commerce:cart
- Debugs error if the current cart options were not properly encoded
front-commerce:catalog
- Debug Magento 2 category search operations and GraphQL responses
- Debug Magento 2 product search operations, filters, and GraphQL responses
- Debug product category search operations in cache
- Debugs category search operations in cache
- Debugs product search queries and results
front-commerce:config
- Debugs created GraphQL schema
- Debugs current shop URL and id
- Debugs detected device information
- Debugs service configuration errors
front-commerce:contentful:blocksContentType
- Debugs BlocksContentType
front-commerce:contentful:contentfulLoader
- Debugs Contentful request, response and error
front-commerce:contentful:makeGraphQLAxiosInstance
- Debugs GraphQL Axios instance debug
front-commerce:contentful:preview
- Debugs Contentful preview debug
front-commerce:contributionMode
- Debugs the storefront content directive
front-commerce:core:analytics
- Debugs the analytics plugin
front-commerce:core:analytics:ga4-measurement-protocol
- Debugs the GA4 measurement protocol plugin
front-commerce:core:events:external-integrations:redis
- Debug Redis serverevents operations
front-commerce:core:events:handlers:DebugEventHandler
- Debugs server events received