Comment (computer programming): Difference between revisions

Content deleted Content added
Describe intent: Add why vs what language that is commonly used
Comment out: clarify
Line 109:
{{anchor|Debugging}}
 
A common developer practice is to '''comment out''' one or more lines of code. The programmer adds comment syntax that converts program code into comments so that what was executable code will no longer be executed at runtime. Sometimes this technique is used to find the cause of a bug. By systematically commenting out and running parts of the program, the offending source code can be located.
 
Many IDEs support adding and removing comments with convenient [[user interface]] such as a [[keyboard shortcut]].