不要用debuggerformysql, 这款软件非常垃圾,而且很容易卡死。 推荐: dbforge studio 保底手段: 新建临时表,在待调试的Function或者Produce中穿插着插入日志信息至临时表中。