简体   繁体   English

如何调试 pycharm 中的点击命令

[英]How to debug click command in pycharm

I'm following flask tutorial .我正在关注flask 教程 My code of init-db doesn't do what I'm expecting, and I want to debug it.我的init-db代码没有达到我的预期,我想调试它。 But I can't figure out how to accomplish this.但我不知道如何做到这一点。

In pycharm,you can find DEBUG button in Edit configuration.在 pycharm 中,您可以在 Edit configuration 中找到 DEBUG 按钮。 DEBUG button image调试按钮图像

Debugging in PyCharm is quite easy and similar to other IDE.在 PyCharm 中调试非常简单,并且与其他 IDE 类似。
You need just to add a breakpoint where you want to stop the code execution and then proceed line by line checking the variables.您只需在要停止代码执行的位置添加一个断点,然后逐行检查变量。

Since there are no more information on what do you need, I suggest you to check this guide that from my point of view is very clear.由于没有关于您需要什么的更多信息,我建议您查看本指南,从我的角度来看,它非常清楚。

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

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