Skip to main content
I am using VS code. Trying to render a button with a button click event. The code is as below

 

<apex:page controller="OnAuthorizeController">

<apex:form>

<apex:commandButton value="Get token" action="{!getToken}" />

</apex:form>

</apex:page>

 

public with sharing class OnAuthorizeController {

public void getToken(){

string str = 'dummy code'; // break point here is never triggered

string str2 ='dummy code2';

}

}

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=dNBsYLfI1nk

 
1 个回答
0/9000