import { log } from 'console';
import {isNullOrUndefined} from '../helpers/common/data-helper.js';

export class DebugManager {

	private static INSTANCE: DebugManager;
	private debugEnabled = false;
	private constructor() {
	}

	public static getInstance() {
		if (isNullOrUndefined(DebugManager.INSTANCE)) {
			DebugManager.INSTANCE = new DebugManager();
		}
		return this.INSTANCE;
	}

	// Getter to check if debugging is enabled
	public isDebugEnabled(): boolean {
		return this.debugEnabled;
	}

	// Setter to enable or disable debugging
	public setDebugEnabled(enabled: boolean): void {
		console.log(enabled);
		this.debugEnabled = enabled;
	}


}
