title: How can I setup error reporting with Laminas for a development environment?
body: <p>This may be a simple question but, how do I get some error message with Laminas? I'm trying to migrate an old application from ZF2 to Laminas 3. It's always difficult to get any details from the exceptions thrown. Here's the common &quot;No Exception available&quot; message.</p>
  <p>An error occurred during execution; please try again later.
  No Exception available</p>
  <p>Here's my current view manager config. It has some custom twig templates.</p>
  <pre><code>return array(
      ...
      'view_manager' =&gt; array(
              'display_not_found_reason' =&gt; true,
              'display_exceptions'       =&gt; true,
              'doctype'                  =&gt; 'HTML5',
              'not_found_template'       =&gt; 'error/404',
              'exception_template'       =&gt; 'error/index',
              'template_map'             =&gt; array(
                      'layout/layout' =&gt; getcwd() . '/Module/App/view/layout/layout.twig',
                      'error/404'     =&gt; getcwd() . '/Module/App/view/error/404.phtml',
                      'error/index'   =&gt; getcwd() . '/Module/App/view/error/index.phtml',
              ),
              'template_path_stack' =&gt; array(
                      getcwd() . '/Module/App/view',
              ),
      ),
      ...
  </code></pre>
  <p>I've also increased the error_reporting to E_ALL and displayed startup errors. I'd like to get some detailed error messages and maybe a stack trace, but can't see how to set this up within Laminas.</p>