如何使用Google文档插件脚本查看旧版本的代码 [英] How to check out code from old version with Google docs add-on script

查看:140
本文介绍了如何使用Google文档插件脚本查看旧版本的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在05/21制作了一个附加组件。





在此之间的某个时刻,它已经崩溃了。



旧版代码已不在修订历史记录中,只能追溯到05 / 22



我测试过版本1 ,它可以工作,这意味着它使用正确的代码。 p>



我可以运行这个工作版本,但我不会我不知道如何重新打开代码。



如何查看版本1的代码我的附加组件?



编辑

从@ BryanP的评论中,我被告知有一个现有的请求这里




  • 创建一个测试项目

  • 包含旧版本的库

  • 使用调试器进入旧版本的代码,然后将其复制并粘贴到安全的地方。



我使用这种技术在我正在使用的库中查找。


I made an add-on that worked on 05/21.

At some point between then and now it broke.

The old code is no longer in the revision history which only goes back to 05/22.

I have tested version 1, and it works, which means it's using the right code.

I can run this working version, but I don't know how I can re-open the code for it.

How do I view the code for version 1 of my add-on?

EDIT

From @BryanP's comment, I've been informed that there is an existing request for this here.

解决方案

It's a bit round the houses, but you could:

  • Create a test project
  • include the older version of your library
  • Use the debugger to step into the older version of the code and then copy and paste it somewhere safe.

I use this technique to poke around in the libraries I'm using.

这篇关于如何使用Google文档插件脚本查看旧版本的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆