How to use the node-opcua-object-registry.ObjectRegistry.doDebug function in node-opcua-object-registry

To help you get started, we’ve selected a few node-opcua-object-registry examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-leak-detector / src / resource_leak_detector.js View on Github external
"use strict";
Error.stackTraceLimit = Infinity;

const assert = require("node-opcua-assert").assert;
const _ = require("underscore");
const chalk = require("chalk");


const ObjectRegistry = require("node-opcua-object-registry").ObjectRegistry;
ObjectRegistry.doDebug = true;
const trace = false;

//trace = true;

function get_stack() {
    const stack = (new Error("Stack Trace recording")).stack.split("\n");
    return stack.slice(2, 7).join("\n");
}

const monitor_intervals = false;


function ResourceLeakDetector() {
    const self = this;

    self.setIntervalCallCount = 0;

node-opcua-object-registry

pure nodejs OPCUA SDK - module object-registry

MIT
Latest version published 3 months ago

Package Health Score

86 / 100
Full package analysis