function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hometeamhometeam 

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.

Best Answer chosen by Admin (Salesforce Developers) 
blombardisblombardis

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

aalbertaalbert

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.

hometeamhometeam

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.

blombardisblombardis

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

This was selected as the best answer
hometeamhometeam

Thank you all.  I have a much better understanding of how this all works now and the problem has been fixed.:smileyhappy: