def get_current_debug_mode():

“”” Getter function for the current debug mode Returns ——- bool

current debug mode

“”” return __DEBUG_MODE

def switch_debug_mode():

“”” Alternates the current debug mode “”” set_debug_mode(not get_current_debug_mode())

def set_debug_mode(mode: bool):

“”” Sets a new debug mode Parameters ———- mode : bool

the new debug mode

“”” global __DEBUG_MODE __DEBUG_MODE = mode

Debug Mode

Delira now contains a fully-fledged Debug mode, which disables all kinds of multiprocessing.

get_current_debug_mode

get_current_debug_mode()[source]

Getter function for the current debug mode :returns: current debug mode :rtype: bool

switch_debug_mode

switch_debug_mode()[source]

Alternates the current debug mode

set_debug_mode

set_debug_mode(mode: bool)[source]

Sets a new debug mode :param mode: the new debug mode :type mode: bool