The other method is to click on the spine area to the left of the code and line numbers. If you are more a mouse-centric developer, you will find this to be the more natural way for setting breakpoints.
To deactivate a breakpoint, simply click on the red circle or press Apple- again and the breakpoint will be removed.
It should be noted that if you create a breakpoint on a line that contains no actual code, the break point would actually execute on the next line of executable code.
We can now observe that the application stops on the line where the breakpoint was located. This gives us an opportunity to observe the state of the application at the time when the breakpoint is reached. Many times it is useful to put a breakpoint inside of some control structure, such as an if
statement, to see if the conditions which should trigger it are ever met.
18.227.89.34