Find your content:

Search form

You are here

Is there a better way to debug a code in salesforce?

 
Share

I have been working on test classes and often writing test scenarios for code developed by other developers. Many a time i would need to insert in some debug statements to understand the flow of the code or to identify what is causing the failures of asserts.

I currently run the test class using the Apex Test Execution under Develop and check the debug logs under Administration setup -> monitoring.

I find this method a lot time consuming with the no of clicks needed to get to the logs. Is there a better way of doing it?

Thanks


Attribution to: Prady

Possible Suggestion/Solution #1

There are ways to export the debug logs to remote programs like the one posted in the comment above.

However, you should use the developer console rather than the 'Setup->Monitoring' for faster execution of individual methods and debugging test methods when they're actually running.

Also, for more technical examples see: How to export debug logs?


Attribution to: jordan.baucke
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/1155

My Block Status

My Block Content