title: How to debug features in Behat 3 with echo
body: <p>I am trying to debug a feature in Behat 3 to see what is going on. </p>
  
  <p>Echo statements don't seem to work - I get no output. </p>
  
  <p>The step I'm trying to use currently looks like this:</p>
  
  <pre><code>/**
   * @Then /^echo last request$/
   */
  
  public function echoLastRequest() 
  {
      echo ($this-&gt;_history-&gt;getLastRequest());
      echo 'test';
  }
  </code></pre>