title: Nuxt.js: How to debug server side after nuxt build (logging some information)
body: <p>I am using nuxt.js for my frontend app. I currently have a problem with <code>asyncData</code> especially the first time it is run (which is on the server).</p>
  
  <p>When building my app (<code>$ nuxt build</code> and serving it via <a href="https://www.npmjs.com/package/serve" rel="noreferrer"><code>$ serve</code></a>), I currently have no real possibility to console.log some information out from the code that is run on the server. How can I debug that part, before code is run on my client?</p>
  
  <p>Would this be a way:
  <a href="https://codeburst.io/debugging-nuxt-js-with-visual-studio-code-724920140b8f" rel="noreferrer">https://codeburst.io/debugging-nuxt-js-with-visual-studio-code-724920140b8f</a>
  So I would launch nuxt manually with <code>node.js</code> and try to inspect something there?</p>
  
  <p>Or is there a better way?
  The nuxt build properties (<a href="https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin" rel="noreferrer">https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin</a>) are just for analyzing the build right? Like package sizes etc, and not for actual code that is run on the server?</p>
  
  <p>I hope I could make clear what I am looking for, if not I am happy to answer further questions.
  Any hints are very welcome. Thank you in advance.</p>
  
  <p>cheers</p>