Erikku Posted August 13, 2012 Share Posted August 13, 2012 (edited) 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 August 31, 2012 by Erikku (see edit history) Link to comment Share on other sites More sharing options...
Erikku Posted August 15, 2012 Author Share Posted August 15, 2012 Is anybody using a debugger for prestashop development? Link to comment Share on other sites More sharing options...
mexique1 Posted August 17, 2012 Share Posted August 17, 2012 I'm using XDebug but not for step-by-step debugging, I'm using CacheGring to process XDebug files. Like I said in the french thread, sounds like your IDE/XDebug pair is not working together, this is not related to the PHP code. Link to comment Share on other sites More sharing options...
Erikku Posted August 17, 2012 Author Share Posted August 17, 2012 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 More sharing options...
mexique1 Posted August 17, 2012 Share Posted August 17, 2012 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 More sharing options...
Erikku Posted August 17, 2012 Author Share Posted August 17, 2012 Yep, maybe by tweaking some xdebug configuration properties in the php.ini Some day I will try with Eclipse... Some day... What about tomorrow? Link to comment Share on other sites More sharing options...
Erikku Posted August 17, 2012 Author Share Posted August 17, 2012 After some research, it appears that it is a known issue. Netbeans developers are blaming XDebug and XDebug developers are blaming Netbeans... Link to comment Share on other sites More sharing options...
Erikku Posted August 31, 2012 Author Share Posted August 31, 2012 It seems nobody is using xdebug, so just for the record, I get the same error with Eclipse. But the new version of XDebug (2.2.1) fixes the problem (in Netbeans at least). Link to comment Share on other sites More sharing options...
Recommended Posts