title: is it possible to console.log in Play Framework view?
body: <p>I was wondering is it possible to console.log in Play view? I want to find out how data is flowing in certain parts of the code.</p>
  
  <pre><code>  faqList: Array[FaqModel],
    priorityFaqs: Map[Integer, List[FaqModel]])
  
  
  
  @script={
      EntryPoint.header()
      EntryPoint.accountIndex(indexJsRoutes)
      &lt;script type="text/javascript"&gt;console.log(@priorityFaqs)&lt;/script&gt;
  }
  </code></pre>
  
  <p>I know that it is possible to put console.log in @script, like showed above. But is it possible to use it in template like this?</p>
  
  <pre><code>else if(priorityFaqs.get("1") != null) {
                                      for(priorityItem &lt;- priorityFaqs.get("1")) {
                                          **console.log(@priorityFaq)**
                                      }
  </code></pre>
  
  <p>Or maybe there is another way? </p>