MCPcopy
hub / github.com/CacheControl/json-rules-engine / debug

Function debug

src/debug.js:1–10  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

1export default function debug (message) {
2 try {
3 if ((typeof process !== 'undefined' && process.env && process.env.DEBUG && process.env.DEBUG.match(/json-rules-engine/)) ||
4 (typeof window !== 'undefined' && window.localStorage && window.localStorage.debug && window.localStorage.debug.match(/json-rules-engine/))) {
5 console.log(message)
6 }
7 } catch (ex) {
8 // Do nothing
9 }
10}

Callers 10

evaluateMethod · 0.85
addOperatorMethod · 0.85
addFactMethod · 0.85
evaluateRulesMethod · 0.85
runMethod · 0.85
evaluateConditionsMethod · 0.85
prioritizeAndRunMethod · 0.85
addFactMethod · 0.85
addRuntimeFactMethod · 0.85
factValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…