Jump to content

[Solved] xdebug session ending prematurely


Recommended Posts

I am trying to debug through Prestashop 1.5.0.13.

But my debugging session always ends before I reach line 107 in \config\config.inc.php

Here are line 106 and 107:

$defaultCountry = new Country(Configuration::get('PS_COUNTRY_DEFAULT'), Configuration::get('PS_LANG_DEFAULT'));
Context::getContext()->country = $defaultCountry;

The problem comes from the ObjectModel constructor (base class of Country), the debugging sessions ends as soon as it reaches it.

Any idea why might cause this?

I am new to Prestashop, so the solution might be straightforward.

Thank you.

Edited by Erikku (see edit history)
Link to comment
Share on other sites

I am using Netbeans and it is half-working as I can go through part of the code.

I am not saying there is something wrong with the PHP code. A debugger that crashes when you write bad code would not really be helpful :)

I think it is more a matter of settings or something.

Thanks anyway.

Link to comment
Share on other sites

A debugger that crashes when you write bad code would not really be helpful

 

Haha this could be a programming quote.

 

Yep, maybe by tweaking some xdebug configuration properties in the php.ini

Some day I will try with Eclipse... Some day...

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...