title: Blazor WebAssembly - Write to IDE console from server side controller method
body: <p>I'm taking my first steps in moving to Blazor development, coming from MVC. For testing purposes I created a controller with the following method:</p>
  <pre><code>[Route(&quot;/server/[controller]&quot;)]
  public class HomeController : Controller
  {
      private readonly DataContext _db;
  
      public HomeController(DataContext db)
      {
          _db = db;
      }
  
      public IActionResult Index()
      {
          var q = from v in _db.MyTable select v;
  
          foreach(var v in q)
          {
              Console.WriteLine($&quot;{v.Id}: {v.Description}&quot;);
          }
  
  
          return View();
      }
  }
  </code></pre>
  <p>In my Visual Studio console, I have no output.
  While in the foreach loop, in the &quot;Locals&quot; pane, I see these two values changing on each iteration:</p>
  <pre><code>Name                                           Value        Type
  MySol.Shared.MyTable.Description.get returned  &quot;DESC 1&quot;     string
  string.Format returned                         &quot;1: DESC 1&quot;  string
  </code></pre>
  <p>These values are removed from the &quot;Locals&quot; pane as soon as I exit the foreach loop.</p>
  <p>Is there a way to write to console the usual way from server methods?</p>
  <p>Thank you.</p>