function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kent LichtyKent Lichty 

Cannot get View State tab to display in VisualForce custom page

I have created a custom VisualForce page and a custom controller, and I want to be able to examine the view state to see how big it is.  I have read that you can enable a view state tab (or VisualForce developer footer tab) to be displayed and, while I think I have met all of the requirements, no such tab is ever displayed.  I have modified my user settings to check both "Development Mode" and "Show View State in Development Mode".  I have tried in both Classic and Lightning, and have tried logging off and then back in.  Nothing works.  If anybody could tell me what I am doing wrong, I would appreciate it.  Or, if anybody could tell me how to check the view state size in an apex log, that would be great as well.  Thanks very much.
Best Answer chosen by Kent Lichty
David Zhu 🔥David Zhu 🔥
When you enabled both settings, view state tab is displayed when you run display a VF Page. like 
https://xxxxxxxx.visual.force.com/apex/yourVFPage
It does not show if using the Salesforce standard UI.

View state tab shows at the bottom of the screen and it looks like this:

User-added image

All Answers

David Zhu 🔥David Zhu 🔥
When you enabled both settings, view state tab is displayed when you run display a VF Page. like 
https://xxxxxxxx.visual.force.com/apex/yourVFPage
It does not show if using the Salesforce standard UI.

View state tab shows at the bottom of the screen and it looks like this:

User-added image
This was selected as the best answer
Kent LichtyKent Lichty
Thanks very much David; that worked perfectly!