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.
CodePudding user response:
In pycharm,you can find DEBUG button in Edit configuration. DEBUG button image
CodePudding user response:
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.