How to debug in PyCharm - farcryzry/CMPE203-Group1 GitHub Wiki
-
Configure settings file for pycharm.
-
Edit configuration for Debug.
-
Create a new Run/Debug Configruation.
-
Click the button to start debugging. You will see there is some information in the console which indicates the django server is started. We can set a breakpoint in the function as the image shows.
-
The browser is opened. If you try to upload new image, application execution will be pause at the breakpoint you set.
-
Now, enjoy debugging! You will be more efficient when debugging the application than just reading the code.