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
Kumar_ShahKumar_Shah 

Trace all methods execution in a transaction

What is the best way to trace all methods which are getting executed in a transaction? I am looking for mainly debugging purpose where I get SOQL 101 error. I am not sure how to find if any workflow rules, process builder or triggers are getting executed.

Thanks,
VinayVinay (Salesforce Developers) 
Hi Kumar,

Debug logs gives you best way to debug 101 SOQL error,  Set debug level to 'Finest' for workflows, process builder etc.,

Check below references

https://help.salesforce.com/articleView?id=000331875&type=1&mode=1
https://sfdctechie.wordpress.com/2018/02/28/too-many-soql-queries-101-error/

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Kumar_ShahKumar_Shah
Thanks for the reply, Vinay.  Actually, I was looking for a tool or any out of box solution to extract all methods quickly to analyze. If it difficult to extract all method and build a flow from a debug log when it involves many objects dependency, workflows and triggers. Thanks,
VinayVinay (Salesforce Developers) 
Unfortunately, we do not have any out of box functionality tools to debug issues in salesforce.

Check 'Apex Interactive Debugger' using VS Code.

Review below tool references

https://help.salesforce.com/articleView?id=debugging_your_code.htm&type=5
https://developer.salesforce.com/tools/vscode/en/apex/interactive-debugger/
https://chrome.google.com/webstore/detail/salesforce-developer-tool/fiaakhiohminpblhmlihfcdhclmphjcd?hl=en

Check below tools for code scanner.

> PMB
> SonarQube
> CheckMarx
> Code Scan

Hope this helps...

Thanks