def set_window_value(key, value=None):
    try:
        settings = sublime.active_window().settings()
        if settings.has(S.KEY_XDEBUG):
            xdebug = settings.get(S.KEY_XDEBUG)
        else:
            xdebug = {}
        if value is not None:
            xdebug[key] = value
        elif key in xdebug.keys():
            del xdebug[key]
        settings.set(S.KEY_XDEBUG, xdebug)
    except:
        pass
Set value in window session settings.
dataset/ETHPy150Open martomo/SublimeTextXdebug/xdebug/config.py/set_window_value