1

This question already has an answer here:

Since there are so many classes and methods called from my class method, the debug log generated is very huge and getting truncated. How can i see the full debug log ? Is there a way through which i can set that log contains only those statements where i use System.debug().

marked as duplicate by Daniel Ballinger, Chris Duncombe, Adrian Larson, Jenny B, Boris Bachovski May 5 '15 at 23:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

If log size is execeeding some limit(I guess 2MB), it will truncate debug log. You can try changing log level in debug log to retrieve only important log, so that it will be within limit. In some cases since nothing was working, I have ended up creating records in a dummy object with the log I want.

1

I'd suggest using apex checkpoints to check the values. Alternatively, you could comment out some of the code after your debug.

https://help.salesforce.com/apex/HTViewHelpDoc?id=code_dev_console_checkpoints_setting.htm&language=en_US

Not the answer you're looking for? Browse other questions tagged or ask your own question.