def set_project_value(key, value=None):
    # Unable to set project value if no project file
    if not sublime.active_window().project_file_name():
        return False
    # Get current project data
    project = sublime.active_window().project_data()
    # Make sure project data is a dictionary
    if not isinstance(project, dict):
        project = {}
    # Create settings entries if they are undefined
    if S.KEY_SETTINGS not in project.keys() or not isinstance(project[S.KEY_SETTINGS], dict):
        project[S.KEY_SETTINGS] = {}
    if S.KEY_XDEBUG not in project[S.KEY_SETTINGS].keys() or not isinstance(project[S.KEY_SETTINGS][S.KEY_XDEBUG], dict):
        project[S.KEY_SETTINGS][S.KEY_XDEBUG] = {}
    # Update Xdebug settings
    if value is not None:
        project[S.KEY_SETTINGS][S.KEY_XDEBUG][key] = value
    elif key in project[S.KEY_SETTINGS][S.KEY_XDEBUG].keys():
        del project[S.KEY_SETTINGS][S.KEY_XDEBUG][key]
    # Save project data
    sublime.active_window().set_project_data(project)
    return True
Set value in project configuration settings.
dataset/ETHPy150Open martomo/SublimeTextXdebug/xdebug/config.py/set_project_value