+ Start a Discussion
Ken_KoellnerKen_Koellner 

How to inspect view state when debugging.

Anyone recall what debugging facility and where to inspec the view state?

 

I think it's in Apex CSI (new system log) somewhere but I forget where.

 

 

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

Under your user profile, enable Development Mode and View State. Then, navigate to the page you're working on; it will be in the bottom section (the code editor).

All Answers

sfdcfoxsfdcfox

Under your user profile, enable Development Mode and View State. Then, navigate to the page you're working on; it will be in the bottom section (the code editor).

This was selected as the best answer
Ken_KoellnerKen_Koellner

Thanks for the tip; that's the answer.

 

Since I edit only in the IDE, I never turn on Development Mode so I never would have found it just poking around.

 

(It seems that turning on dev mode hugely slows down the page render so I'll only use it when I really need it to investigate something.)

 

-Ken

 

sfdcfoxsfdcfox

That's a good practice. In addition, I've noticed that some specific features (a specific example is last night when I was working on some JavaScript to leverage multiple windows) will fail when development mode is on.

EIE50EIE50

Hi,

 

Does any one mind explaining why the view state button is used, i had been looking at it for quite some time without any clue.

 

Thanks.