+ Start a Discussion
saisaisaisai 

How to find apex pages & classes used or referenced by it for debugging.

If we want to fix a bug and we r in a screen and we need to find the classes & page that is using it.

How to find it.

Thanks

Sai

Best Answer chosen by Admin (Salesforce Developers) 
Sridhar BonagiriSridhar Bonagiri

Hi,

 

You can find dependencies of each class. Open a Apex class in view mode , click on the button 'Show Dependencies'. It will show the dependencies.

 

Regards,

Sridhar Bonagiri

If this post is your solution, kindly mark this as the solution and give Kudos.

 

All Answers

AdrianCCAdrianCC

What error are you getting? Keeping the developer console open at the time of the error usually does the trick(Click on your name up right > Setup > Developer Console). I suggest opening logs in raw mode to see more info. Changing log levels can also help, but usually the errors are shown.

 

Thanks,

Adrian

Sridhar BonagiriSridhar Bonagiri

Hi,

 

You can find dependencies of each class. Open a Apex class in view mode , click on the button 'Show Dependencies'. It will show the dependencies.

 

Regards,

Sridhar Bonagiri

If this post is your solution, kindly mark this as the solution and give Kudos.

 

This was selected as the best answer
sandeep@Salesforcesandeep@Salesforce

You can find VF Page just in URL like /Apex/XXXXXXXXX heere XXXXXXXX is your VF page so please look in to URL

 

and then go to setup > Develop>Apaex Page> and then find ths page code in page code in first line you will get class name in controller attribute.

CaptainObviousCaptainObvious

Make sure you enable Development Mode:

 

Setup > Personal Setup > My Personal Information > Personal Information

 

When you view the page in question, look at the status bar across the bottom of the page. The page name and any associated controller/ extensions will be listed. Expand the bar to edit the page or controller.