Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

請問問題 #4

Open
craig7351 opened this issue Oct 21, 2022 · 1 comment
Open

請問問題 #4

craig7351 opened this issue Oct 21, 2022 · 1 comment

Comments

@craig7351
Copy link

Hi,
抱歉打擾
首先感謝提供這麼好的範例程式
想請問一下關於Debug Google apps script的方法
我看程式碼中有
// for debugging
Logger.log(msg);
console.log(msg);
這種debug code, 那我要去哪裡才能看到印出的東西呢?

@jschang19
Copy link
Owner

Hi craig:

感謝詢問,App Script 的 Logger.log 在 doPost 函式下無法顯示( 新版 App Script 編輯器上線後就無法查看了 )那是我以前複製程式模板時沒有刪掉的。

假設你想看 msg,有兩個方法,一個是綁定 Google Cloud Platform 的專案,並使用 Cloud Logging 查看( 官方文件 ),或是比較簡單的做法:你可以寫一個 function,將 msg 存入到一個 Google sheet 試算表裡面,就能把 user message 儲存起來了~ 希望有回答到你的問題

@jschang19 jschang19 reopened this Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants