def METHOD_NAME(self):
    if Controller.instance().isRemote():
        QtWidgets.QMessageBox.critical(self, "Debug", "Export debug information from a remote server is not supported")
        self.reject()
        return
    self._path, _ = QtWidgets.QFileDialog.getSaveFileName(self, "Export debug file", None, "Zip file (*.zip)", "Zip file (*.zip)")
    if len(self._path) == 0:
        self.reject()
        return
    if Controller.instance().connected():
        Controller.instance().post("/debug", self._exportDebugCallback)
    else:
        self._exportDebugCallback({}, error=True)