CLEAR

DiagnosticsModule


The DiagnosticsModule class enables diagnostic logging.

Example

const Diagnostics = require('Diagnostics');
const FaceTracking = require('FaceTracking');

Diagnostics.log('Printing to the console');

Diagnostics.log('Printing to the console');
Diagnostics.watch('Number of faces detected ', FaceTracking.count);

Properties

This class exposes no properties.

Methods

MethodDescription

getModuleNames

getModuleNames(): Array<string>)

Finds the names of all modules that can be loaded through require calls.

getTypeDescriptions

getTypeDescriptions(): Array<string>

Finds the descriptions for each type in the effect.

log

log(content: Object): void

Flattens content to a string and prints it to the debug console. Note: this function can be reassigned to any var (i.e. foo.log = Diagnostics.log;)

watch

watch(tag: String, signal:BoolSignal): void watch(tag: String, signal:ScalarSignal): void watch(tag: String, signal:StringSignal): void

Adds the specified signal to the watch view in AR Studio with the specified tag.