title: How to view ViewBag content while debugging in Visual Studio?
body: <p>A very basic question: how can I easily view the contents of a ViewBag while debugging ASP.NET MVC controllers in Visual Studio?</p>
  
  <p>As a workaround, I use temporary variables:</p>
  
  <p><code>string tmp = ViewBag.MyData;</code></p>
  
  <p>So, the problem is that viewing <code>ViewBag.MyData</code> directly is difficult, <code>tmp</code> is easy.</p>