title: How can you see the stack trace of an uncaught exception in Google Cloud Functions?
body: <p>I have defined a python function in Google Cloud Functions, which I expect to fail, below:</p>
  
  <pre class="lang-py prettyprint-override"><code>def write(event, context):
      raise NotImplementedError()
  </code></pre>
  
  <p>Now I want to look at the stack trace of this function so I can debug my function. In the <a href="https://cloud.google.com/functions/docs/monitoring/error-reporting" rel="noreferrer">documentation</a> it states:</p>
  
  <blockquote>
    <p>Uncaught exceptions produced by your function will appear in Stackdriver Error Reporting. </p>
  </blockquote>
  
  <p>however I can't seem to find this stack trace anywhere. I've tried looking at the logs (it just tells me it crashed with no trace) and I've tried looking at the Stackdriver Error Reporting page I can't find it anywhere. Where can I access the uncaught error logs? </p>
  
  <p><a href="https://i.stack.imgur.com/tVmbB.png" rel="noreferrer">Picture of GCF test response for reference.</a></p>
  
  <p>Thanks for any help!</p>