title: Can I get detailed exception stacktrace in PowerShell?
body: <p>Runing such script:</p>
  
  <pre><code> 1: function foo()
   2: {
   3:    bar
   4: }
   5: 
   6: function bar()
   7: {
   8:     throw "test"
   9: }
  10: 
  11: foo
  </code></pre>
  
  <p>I see</p>
  
  <pre><code>test
  At C:\test.ps1:8 char:10
  </code></pre>
  
  <p>Can I get a detailed stack trace instead?</p>
  
  <pre><code>At bar() in C:\test.ps1:8
  At foo() in C:\test.ps1:3 
  At C:\test.ps1:11
  </code></pre>