Debugging in Fluid Infusion

Debugging in Fluid Infusion

Building a Debugger for Fluid

Ideas

  • Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

  • Present the fluid.activityTrace

  • Faceting search/filter for activities

  • Use colours to distinguish event types

  • A mechanism to navigate to the instantiator record for a component

  • An interface to explore or ask questions about the history of a component

Fluid Debug Internals

fluid.activityTrace

The fluid.activityTrace Array contains a record of activities.

There are 2 types of entries in the activityTrace:

  1. An activity record

  2. A pop entry

An activity record contains:

  • type

  • message

  • args

  • time

fluid.pushActivity() (Fluid.js)

fluid.popActivity() (Fluid.js)

fluid.activityTracing

Boolean to turn tracing on and off.

fluid.instantiator

Live IoC record.