简体   繁体   中英

How to debug click command in pycharm

I'm following flask tutorial . My code of init-db doesn't do what I'm expecting, and I want to debug it. But I can't figure out how to accomplish this.

In pycharm,you can find DEBUG button in Edit configuration. DEBUG button image

Debugging in PyCharm is quite easy and similar to other 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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