How to check out code from old version with Google docs add-on script

浪子不回头ぞ 提交于 2019-12-07 13:30:41

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/33051601/how-to-check-out-code-from-old-version-with-google-docs-add-on-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!