+ Start a Discussion
saisaisaisai 

unable to debug in Dev Console.

Just wondering if it is possible to debug using Dev Console.

 

Here is my class i have created and i have put a breakpoint at the last line of the method getList();

Then i have executed and it appears like it does not stop at the last line.

The heap dump just shows up with the objects initialized in it.

Is this the only way to debug?

 

public class Pair {
public Integer First {get; set;}
public String Second {get; set;}
public Pair(Integer first, String second)
{
this.First = first;
this.Second = second;
}
public List<Pair> getList()
{
List<Pair> pairs = new List<Pair>();
System.Debug('Debug1');
Pair p1 = new Pair(1,'One');
Pair p2 = new Pair(2,'Two');
pairs.add(p1);
pairs.add(p2);
return pairs;
}
}

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

Can you please let me know error message so I can go deeper.

All Answers

sandeep@Salesforcesandeep@Salesforce

Hi, 

 

I am able to debug it on my developer console. Please try again and let me know in case of further query.

saisaisaisai

Thanks for your response Sandeep.

I am still unable to debug on chrome.

I have stepped out for a few mins and came back and tried execute i also notice the Heap Dump does not refresh in other words does not show heap dump for the latest one. Please let me know if you have any suggestions.

Thanks

Sai

saisaisaisai

I have closed the Dev Console and opened again Sandeep. Still the breakpoint does not get hit/stop where it is located but the heap dump got refreshed. Please help.

Thanks

Sai

sandeep@Salesforcesandeep@Salesforce

Can you please let me know error message so I can go deeper.

This was selected as the best answer