Debugging
Debugging is the process of locating the underlying causes of flaws in your programme that were found during testing and then modifying your code to deliver the precise result that you were going for. In PyCharm, you have two options for debugging code: shortcut keys or selecting the necessary 'Debug' option from the 'Run' tab. On Windows, use "Shift + F9" or "Alt + Shift + 9," whereas on MacOS, press "Ctrl + D."
When you click on Debug *module/project_name*, the Python project starts being debugged, the Windows firewall may request permission due to the step-by-step compilation process. The PyCharm editor is used to construct the debugging console, which runs the output line by line, as shown in the screenshot given below. To execute the output as desired, the run button jumps from one line to the next.
Breakpoints
The purpose of setting a breakpoint is to aid with script debugging. Breakpoints are places in the code when the execution is purposefully stopped or paused in order to identify the output at a certain step. Breakpoints are visible in PyCharm via a separate dialogue in the chosen editor. It has a number of attributes to assess the breakpoints set and the tracing log for the same, with the primary goal of enhancing programming practises. In order toview the breakpoints, you can also use the shortcut keys Ctrl + Shift + F8 in Windows.