false, indexInBackup: null, content});
        } else {
          alert(r.msg);
        }
      }

      // 删除程序
      function debugDeleteProgram(name) {
        const oldPrograms = app.programs;
        const newPrograms = [];
        for (let i = 0; i < oldPrograms.length; i++) {
          if (oldPrograms[i].name !== name) {
            newPrograms.push(oldPrograms[i]);
          }
        }
        app.programs = newPrograms;
      }

      // 执行程序
      function debugRunProgram(program)