title: Show more than 10 calls in Codeception stack trace
body: <p>I'm debugging some recursive code via Codeception and it's only showing the last 10 calls, so I don't know what the path through the code is. Xdebug is set to show as much information as possible so, I don't think it's that.</p>
  
  <p>I haven't yet found any configuration option to increase the number of stack trace levels show in Codeception's output.</p>
  
  <p>How can I increase the number of calls in Codeception's output?</p>
  
  <p>Truncated error message:</p>
  
  <pre><code>There was 1 error:
  
  ---------
  1) Hl7MessageHeaderSegmentWriterTest: Should build a message header segment
   Test  tests\unit\HMRX\CoreBundle\Utils\Hl7Writer\Segment\Hl7MessageHeaderSegmentWriterTest.php:testShouldBuildAMessageHeaderSegment
  
    [PHPUnit_Framework_Exception] Object of class DateTimeImmutable could not be converted to string
  
  #1  Codeception\Subscriber\ErrorHandler-&gt;errorHandler
  #2  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7ElementFormatter.php:283
  #3  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7ElementFormatter.php:251
  #4  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7SimpleElementWriter.php:49
  #5  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7ElementFormatter.php:54
  #6  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7ElementFormatter.php:29
  #7  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7ElementFormatter.php:54
  #8  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7ElementFormatter.php:29
  #9  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7ElementFormatter.php:54
  #10 C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Segment\Hl7HeaderSegmentWriter.php:18
  
  FAILURES!
  Tests: 1, Assertions: 0, Errors: 1.
  </code></pre>
  
  <p>Normal error message (note the last line is the entry point from codecept.phar):</p>
  
  <pre><code>There was 1 error:
  
  ---------
  1) Hl7MessageHeaderSegmentWriterTest: Should build a message header segment
   Test  tests\unit\HMRX\CoreBundle\Utils\Hl7Writer\Segment\Hl7MessageHeaderSegmentWriterTest.php:testShouldBuildAMessageHeaderSegment
  
    [Exception] foo
  
  #1  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Data\Hl7DateTimeWrapperDataWriter.php:45
  #2  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Data\Hl7TimeStampDataWriter.php:54
  #3  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7DataForwarder.php:30
  #4  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7DataForwarder.php:24
  #5  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7DataForwarder.php:20
  #6  C:\server\Apache24\htdocs\dev.hmr-app\hmrex\HMRX_App\src\HMRX\CoreBundle\Utils\Hl7Writer\Hl7DataForwarder.php:13
  #7  C:\server\Apache24\htdocs\dev.hmr-app\tests\unit\HMRX\CoreBundle\Utils\Hl7Writer\Segment\Hl7MessageHeaderSegmentWriterTest.php:53
  #8  HMRX\CoreBundle\Utils\Hl7Writer\Hl7MessageHeaderSegmentWriterTest-&gt;testShouldBuildAMessageHeaderSegment
  #9  C:\usr\bin\codecept.phar:7
  
  FAILURES!
  Tests: 1, Assertions: 0, Errors: 1.
  </code></pre>
  
  <p>Xdebug config from phpinfo():</p>
  
  <pre><code>xdebug
  
  xdebug support =&gt; enabled
  Version =&gt; 2.5.5
  
  Supported protocols =&gt; Revision
  DBGp - Common DeBuGger Protocol =&gt; $Revision: 1.145 $
  
  Directive =&gt; Local Value =&gt; Master Value
  xdebug.auto_trace =&gt; Off =&gt; Off
  xdebug.cli_color =&gt; 0 =&gt; 0
  xdebug.collect_assignments =&gt; Off =&gt; Off
  xdebug.collect_includes =&gt; On =&gt; On
  xdebug.collect_params =&gt; 0 =&gt; 0
  xdebug.collect_return =&gt; Off =&gt; Off
  xdebug.collect_vars =&gt; Off =&gt; Off
  xdebug.coverage_enable =&gt; On =&gt; On
  xdebug.default_enable =&gt; On =&gt; On
  xdebug.dump.COOKIE =&gt; no value =&gt; no value
  xdebug.dump.ENV =&gt; no value =&gt; no value
  xdebug.dump.FILES =&gt; no value =&gt; no value
  xdebug.dump.GET =&gt; no value =&gt; no value
  xdebug.dump.POST =&gt; no value =&gt; no value
  xdebug.dump.REQUEST =&gt; no value =&gt; no value
  xdebug.dump.SERVER =&gt; no value =&gt; no value
  xdebug.dump.SESSION =&gt; no value =&gt; no value
  xdebug.dump_globals =&gt; On =&gt; On
  xdebug.dump_once =&gt; On =&gt; On
  xdebug.dump_undefined =&gt; Off =&gt; Off
  xdebug.extended_info =&gt; On =&gt; On
  xdebug.file_link_format =&gt; no value =&gt; no value
  xdebug.force_display_errors =&gt; Off =&gt; Off
  xdebug.force_error_reporting =&gt; 0 =&gt; 0
  xdebug.halt_level =&gt; 0 =&gt; 0
  xdebug.idekey =&gt; no value =&gt; no value
  xdebug.max_nesting_level =&gt; 256 =&gt; 256
  xdebug.max_stack_frames =&gt; -1 =&gt; -1
  xdebug.overload_var_dump =&gt; 2 =&gt; 2
  xdebug.profiler_aggregate =&gt; Off =&gt; Off
  xdebug.profiler_append =&gt; Off =&gt; Off
  xdebug.profiler_enable =&gt; Off =&gt; Off
  xdebug.profiler_enable_trigger =&gt; Off =&gt; Off
  xdebug.profiler_enable_trigger_value =&gt; no value =&gt; no value
  xdebug.profiler_output_dir =&gt; \ =&gt; \
  xdebug.profiler_output_name =&gt; cachegrind.out.%p =&gt; cachegrind.out.%p
  xdebug.remote_addr_header =&gt; no value =&gt; no value
  xdebug.remote_autostart =&gt; Off =&gt; Off
  xdebug.remote_connect_back =&gt; Off =&gt; Off
  xdebug.remote_cookie_expire_time =&gt; 3600 =&gt; 3600
  xdebug.remote_enable =&gt; On =&gt; On
  xdebug.remote_handler =&gt; dbgp =&gt; dbgp
  xdebug.remote_host =&gt; localhost =&gt; localhost
  xdebug.remote_log =&gt; no value =&gt; no value
  xdebug.remote_mode =&gt; req =&gt; req
  xdebug.remote_port =&gt; 9000 =&gt; 9000
  xdebug.scream =&gt; Off =&gt; Off
  xdebug.show_error_trace =&gt; Off =&gt; Off
  xdebug.show_exception_trace =&gt; Off =&gt; Off
  xdebug.show_local_vars =&gt; Off =&gt; Off
  xdebug.show_mem_delta =&gt; Off =&gt; Off
  xdebug.trace_enable_trigger =&gt; Off =&gt; Off
  xdebug.trace_enable_trigger_value =&gt; no value =&gt; no value
  xdebug.trace_format =&gt; 0 =&gt; 0
  xdebug.trace_options =&gt; 0 =&gt; 0
  xdebug.trace_output_dir =&gt; \ =&gt; \
  xdebug.trace_output_name =&gt; trace.%c =&gt; trace.%c
  xdebug.var_display_max_children =&gt; -1 =&gt; -1
  xdebug.var_display_max_data =&gt; -1 =&gt; -1
  xdebug.var_display_max_depth =&gt; -1 =&gt; -1
  </code></pre>