RoyalManG Posted March 14, 2014 Share Posted March 14, 2014 Hi, I am trying to activate the debug console, but without success. In administration, I have activated the debug console - Always open console. The file defines.inc.php I _PS_MODE_DEV_ set to true but the console does not open. Does anyone know why it does not work? Thank you Link to comment Share on other sites More sharing options...
benjamin utterback Posted March 14, 2014 Share Posted March 14, 2014 Hey RoyalManG . You might not be able to tell if PS_MODE_DEV is on. The console will open and tell you errors if you have errors. Link to comment Share on other sites More sharing options...
RoyalManG Posted March 14, 2014 Author Share Posted March 14, 2014 I need to open the debug console, so that I could see all the smarty variables for the development of new plugins. Link to comment Share on other sites More sharing options...
RoyalManG Posted March 14, 2014 Author Share Posted March 14, 2014 In Prestashop 1.5.6.1 it all work, but after update on Prestashop 1.6 debug console not working with same settings. I need urgently help with this problem. Thanks! Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted March 14, 2014 Share Posted March 14, 2014 You're right, this doesn't work in PrestaShop 1.6 and we'll remove it from the BO.However, you can add {debug} or {debug output="html"} in your theme and this should do the job ! Link to comment Share on other sites More sharing options...
benjamin utterback Posted March 14, 2014 Share Posted March 14, 2014 You're right, this doesn't work in PrestaShop 1.6 and we'll remove it from the BO. However, you can add {debug} or {debug output="html"} in your theme and this should do the job ! Hi Lucas, thanks for this. Are you still able to go to config/defines.inc.php and change line 28. define('_PS_MODE_DEV_', false); to define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted March 14, 2014 Share Posted March 14, 2014 Hi Ben Yes, this setting still defines the developer mode in PrestaShop (errors displays, etc...). Link to comment Share on other sites More sharing options...
RoyalManG Posted March 14, 2014 Author Share Posted March 14, 2014 Why did you removed debug console? For developers it was a useful thing. Yes, errors, etc. is possible to display, but smarty variables no. 1 Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted March 17, 2014 Share Posted March 17, 2014 I'm not a developer but from what I understand, we changed the way we use some function inside Smarty and this console couldn't work anymore. You can still display smarty variables by addind {debug} in your theme while debugging. Link to comment Share on other sites More sharing options...
Daniel - PrestaBR Posted March 17, 2014 Share Posted March 17, 2014 That's odd... Anyway you can set a condition in your template: {if Configuration::get('PS_SMARTY_CONSOLE') eq 2}{debug}{/if} So, if you set Debug Console "Always open" in Performance settings it will open. Link to comment Share on other sites More sharing options...
dmartin_webimpacto Posted March 18, 2014 Share Posted March 18, 2014 You can follow this guide to enable again all the "Smarty Console" functionality: http://www.prestashop.com/forums/topic/315879-guide-enable-smarty-console-on-the-new-prestashop-16/ Bye! Link to comment Share on other sites More sharing options...
viper2583 Posted April 9, 2014 Share Posted April 9, 2014 (edited) Hi, Thank you Lucas Cerdan and Benjamin Utterback Edited April 9, 2014 by viper2583 (see edit history) 1 Link to comment Share on other sites More sharing options...
gius3pp3 Posted October 14, 2014 Share Posted October 14, 2014 (edited) Hi Lucas, after change hosting, backoffice it's ok, but frontoffice have white page. I'd like to activate debug, but it isn't very simple.Where I must to put exactly {debug} or {debug output="html"} in my default-bootstrap theme?In which file? Thank You You're right, this doesn't work in PrestaShop 1.6 and we'll remove it from the BO.However, you can add {debug} or {debug output="html"} in your theme and this should do the job ! Edited October 14, 2014 by gius3pp3 (see edit history) Link to comment Share on other sites More sharing options...
maniak741 Posted November 21, 2014 Share Posted November 21, 2014 The popup window started working as expected when I toggled "Move Javascript to the end" to ON in BO > Advanced Parameters > Performance... 2 Link to comment Share on other sites More sharing options...
Recommended Posts