Debugging on Salesforce
Debugging on Salesforce is different than debugging on most other platforms, as Apex code can only be run on the Salesforce servers. If you were building an application for deployment on Heroku, for example, you could still develop and test that application locally before deploying it to the cloud. With Apex code, however, there is no way of running the code locally to ensure that it operates as expected before deploying to the Salesforce servers for compilation and execution. This adds additional challenges for developers in terms of productivity and ease of debugging.
Debugging an issue can be a slow and repetitive process as each edit, save, and then execution action of the code takes multiple saves and potentially multiple page interactions to replicate the behavior. As an example, you may have to save the code (with some amendments or extended debugging statements), then navigate to a page within Salesforce to change or create one or more records, then...