Debugging tools
One of the most simple debugging techniques is to print out information from the code using print function to screen. More advanced techniques will include this output to a log file, by doing so the output in the screen will not be polluted by the debug output, but all the debug output will go the a log file. Making debug output going to a log file is a good programming technique. Debugging will slow down execution of this program, so before this program is released to production, most if not all debugging code needs to be removed. Debugging code is mostly for software developers to troubleshoot potential issues.
More advanced debugging can be done with debugging tools. Debugging software allows line by line execution of the code, and it possible to set breakpoints, or points where the execution of the code will be paused, so line by line execution of the code can be performed.
Debugging tools will also show variable values.
In debugging tools it is possible to execute the rest of the code, or until the next breakpoint is set, it is possible step over, or step in. Step over will execute the code which is currently in a debugger, step in functionality will expand that call. Step in is useful to debug function to see if they contain issues.
Comments
Post a Comment