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

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

Open
kangwuyi opened this issue May 30, 2023 · 1 comment
Open

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

kangwuyi opened this issue May 30, 2023 · 1 comment

Comments

@kangwuyi
Copy link

No description provided.

@LYXOfficial
Copy link

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:端口就行

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