python_github_calendar_api icon indicating copy to clipboard operation
python_github_calendar_api copied to clipboard

请教一下,这种无服务器函数怎么调试呢?

Open kangwuyi opened this issue 2 years ago • 1 comments

kangwuyi avatar May 30 '23 02:05 kangwuyi

vercel项目主页-deployments-最新的部署页-logs,把timeline改成live就能看到实时log了,如果要修改的话在github重新编辑commit就行。 或者添加代码:

from http.server import HTTPServer
...原代码
if __name__=="__main__":
    server=HTTPServer(('localhost',监听的端口),handler)
    while 1:
        server.handle_request()

然后浏览器访问localhost:端口就行

LYXOfficial avatar Mar 15 '24 13:03 LYXOfficial