nonebot用pycharm模块调试运行Bot,会有bug(直接运行不会有问题) #510
Unanswered
1292917512
asked this question in
问答
Replies: 3 comments 1 reply
-
之前一直都是通过bot.py去进行调试运行得,是没啥问题的,nonebot更新过后现在创建得项目没有bot.py了,所以方便还是用模块调试。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
nb-cli 是通过子进程启动的 bot。你应该调试的是子进程,通过attach的方式可以调试子进程。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
使用 Python: F:\ELF\AnelfTools\ELFBot\ELF1.venv\Scripts\python.exe
进程已结束,退出代码1
运行得python环境是创建机器得虚拟环境,不知道为啥调试模式下会获取python版本失败。
直接运行不开调试就没问题,是能够跑通代码得。
Beta Was this translation helpful? Give feedback.
All reactions