You need to sign in to do that
Don't have an account?

Debugging in Eclipse
I've inherited some APEX code and having trouble with the test class. Being new to this I'm trying to understand if I can step through the code? I'm using the Eclipse Force.com IDE. I can run the tests and get results but I want to step through the code and see the actual value of the variables as the code is running. My issue is what I think should be happening isn't but I don't know how to confirm it. Please help.
Hi,
Here you can find documentation:
http://www.salesforce.com/us/developer/docs/apexcode/index.htm
Try searching for "debug log". Under "Understanding the Debug Logs" you can find all teh documentation there.
Hope it helps,
Bruno
All Answers
You can not step through the code at execution time, but as detailed in the Apex docs, you can output the debug logs. Make sure your code has sufficient system.debug() statements, enable Debug Logs or use the System Logs to generate the output. This will show the variable values during execution.
This is very helpful. Do you know if there is any documentation that helps you understand all the log results? There's a lot of data in these and I'm not clear what all of it means.
Hi,
Here you can find documentation:
http://www.salesforce.com/us/developer/docs/apexcode/index.htm
Try searching for "debug log". Under "Understanding the Debug Logs" you can find all teh documentation there.
Hope it helps,
Bruno
Thank you all. I have a much better understanding of how this all works now and the problem has been fixed.:smileyhappy: