<apex:page controller="OnAuthorizeController">
<apex:form>
<apex:commandButton value="Get token" action="{!getToken}" />
</apex:form>
</apex:page>
I am trying to debug the codes inside a button-click event. Generated Apex debug logs and tried to debug but the breakpoints are only getting hit in the page load event. Once the page is rendered, it is impossible to debug the code inside the button click event. Trying to debug as described in this 4 mins video https://www.youtube.com/watch?v=dNBsYLfI1nkpublic with sharing class OnAuthorizeController {
public void getToken(){
string str = 'dummy code'; // break point here is never triggered
string str2 ='dummy code2';
}
}
1 个回答
Try to re-setup Apex Replay Debugger using below references.https://trailhead.salesforce.com/content/learn/projects/find-and-fix-bugs-with-apex-replay-debugger/apex-replay-debugger-set-up-debuggerhttps://www.forcetalks.com/blog/apex-replay-debugger-salesforce-developer-guide/Please mark as Best Answer if above information was helpful.Thanks,