title: How to debug getStaticProps (and getStaticPaths) in Next.js
body: <p>I am trying to debug the <code>getStaticProps()</code> method of a React component included from my pages using <code>console.log()</code> like:</p>
  <pre><code>export default class Nav extends React.Component {
      render() {
          return &lt;nav&gt;&lt;/nav&gt;;
      }
  
      async getStaticProps() {
          console.log('i like output, though');
      }
  }
  </code></pre>
  <p>However, I am neither able to see any output on the console from which the app is being served, nor on the browser's console. I also tried restarting <code>yarn dev</code> and running <code>yarn build</code> to see if it would produce output then. Alas, no cigar.</p>
  <p>So what is the correct way to produce and read debug output from  <code>getStaticProps()</code> and <code>getStaticPaths()</code>?</p>