Skip to content

Tracing

Chris Knight edited this page Jul 23, 2018 · 6 revisions

Overview

⚠️ DO NOT FORGET to disable tracing before pushing to a production environment

Tracing allows you to view many of the actions that ng-form-rules performs. This can be useful when debugging, troubleshooting issues, or if you're just curious. Actions that are traced include (but are not limit to) the following:

  • Initialization of model settings
  • Creation of and updates to form controls
  • Syncronous property tests results (validity and editability)
  • Asyncronous property test results (validity and editability)

These actions will be logged to the JavaScript console in your browser.

How to enable tracing

View example

To enable tracing add the TRACE_SETTINGS_TOKEN with a truthy value to the list of providers in your Angular module.