+ Start a Discussion
saisaisaisai 

Debug VF Page & Controller & JScript.

Hi

Is it possible to debug a VF Page & Controller in Dev Console.

 

Also is it possible to debug a JScript in VF page.

Any suggestions or help is appreciated.

Plesae help.

Thanks

Sai

Best Answer chosen by Admin (Salesforce Developers) 
sandeep@Salesforcesandeep@Salesforce

Sure, 

 

This line seems to be in java script so please check if this list is initialized or not ? 

All Answers

Bhawani SharmaBhawani Sharma
You can use Chrome developer console to debug javascript. It allows you to put break point.
sandeep@Salesforcesandeep@Salesforce

As you have got answered  for second query. for first query 

 

I would like to suggest you to use Debug log  for monitoring any log created on VF page and Class. Please navigate :

 

Setup-> Monitoring-> Debug Log

saisaisaisai

TechForce/Sandeep

Thanks for your help. 

This is the line which is returning a null.

 

var account = result[0];

 

Any suggestions how to fix this.

 

Also will it be possible to put a breakpoint in the controller and debug from force IDE.

Please help.

Thanks

Sai

 

sandeep@Salesforcesandeep@Salesforce

Sure, 

 

This line seems to be in java script so please check if this list is initialized or not ? 

This was selected as the best answer