简体   繁体   English

使用库调试 Google 电子表格脚本

[英]Debugging Google Spreadsheet script using libraries

I am applying scripts in Google spreadsheets.我在 Google 电子表格中应用脚本。 Using the debugger it is easy to to find errors in the script that is local to the spreadsheet (container).使用调试器很容易在电子表格(容器)本地的脚本中找到错误。 In the script I use functions of external libraries, which is running fine.在脚本中,我使用了运行良好的外部库的功能。 However, when using the debugger I am not able anymore to enter the library script.但是,当使用调试器时,我无法再输入库脚本。 The debugger works fine as long as the script is local.只要脚本是本地的,调试器就可以正常工作。 But as soon as an external function is called I get an error但是一旦调用外部 function 我就会得到一个错误

Cannot connect to server无法连接到服务器

when entering the code.输入代码时。 Using the execute command from within the debugger works fine.在调试器中使用执行命令可以正常工作。 Question In the past I was able to use the debugging function also to debug library functions.问题 过去我可以使用调试 function 也可以调试库函数。 Somehow this has changed.不知何故,这已经改变了。 Does anyone know what the reason is?有谁知道是什么原因?

As per checking, it seems this is a well-known bug.根据检查,这似乎是一个众所周知的错误。 Check Cannot debug library, debugger does not step in for details and bump the issue if you can.检查无法调试库,调试器不会介入以获取详细信息并尽可能解决问题。

You might also want to try and check if you can do it via the old IDE. 您可能还想尝试检查是否可以通过旧的 IDE 进行操作。

EDIT:编辑:

As per Rubén, seems like it also doesn't work on the old IDE too.根据 Rubén 的说法,它似乎也不适用于旧的 IDE。

References:参考:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM