How to debug in PyCharm - farcryzry/CMPE203-Group1 GitHub Wiki

  1. Configure settings file for pycharm.

  2. Edit configuration for Debug.

  3. Create a new Run/Debug Configruation.

  4. 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.

  5. The browser is opened. If you try to upload new image, application execution will be pause at the breakpoint you set.

  6. Now, enjoy debugging! You will be more efficient when debugging the application than just reading the code.