Debugging is the process of finding and resolving of defects that obviate correct operation of computer software or a system.
Numerous books have been indited about debugging (visually perceive below: Further reading), as it involves numerous aspects, including interactive debugging, control flow, integration testing, log files, monitoring (application, system), recollection dumps, profiling, Statistical Process Control, and special design tactics to amend detection while simplifying changes.
Debugging, in computer programming and engineering, is a multistep process that involves identifying a quandary, isolating the source of the quandary, and then either redressing the quandary or determining a way to work around it. The final step of debugging is to test the rectification or workaround and ascertain it works.
Debugging – we all do it a lot. Inditing code impeccably the first time around is hard and only a few (if any) prosper at it.
Apex provides debugging support. You can debug your Apex code using the Developer Console and debug logs. To aid debugging in your code, Apex supports exception statements and custom exceptions. Also, Apex sends emails to developers for unhandled exceptions.
How to enable debug log in MavensMate?