title: Prestashop module debugging
body: <p>I am newbie in Prestashop module development so sorry if it is a fool question... I have been reading the docs but I haven't found what I am looking for so here I go,</p>
  
  <p>I'd like to show a message on the screen (just for debugging purpose) with different context vars and so forth when actionCartSave. Something similar to "console.log()" or "alert()" in js.</p>
  
  <p>Impossible to add the product to the cart.</p>
  
  <p><em>textStatus: 'parsererror'</em></p>
  
  <p><em>errorThrown: 'SyntaxError: JSON Parse error: Unrecognized token '&lt;''</em></p>
  
  <p><em>responseText:</em></p>
  
  <p>&lt; xmp style="text-align: left;" > message: &lt; /xmp><br /></p>
  
  <p>*{</p>
  
  <p><em>"products"</em>: [...] * </p>
  
  <p>I have already test this code:</p>
  
  <pre><code>public function hookActionCartSave( $params )
  {
       ppp('message: ');
       return true;
  }
  </code></pre>
  
  <p>...inside the module class definition but I am getting this error when I add a product to the cart:</p>
  
  <p>I get this text in a different browser window.</p>
  
  <p>So please, what is the best way to go? </p>
  
  <p>Hope everything is clear. Thanks. </p>