|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sarahfoxnz Smarty Regular
Joined: 11 Apr 2010 Posts: 76
|
Posted: Tue Feb 05, 2019 9:59 am Post subject: DEBUG in plain text |
|
|
Hello. I've got a problem - Finding what variables have been sent to a template.
Im using the DEBUG option - however this all appears in HTML format. Is there a debug option to show in PLAIN TEXT or using the @print_r option ?
Basically its a live website, and i want to display the debug / variables in a hidden comment & then view the HTML source. That way i can see it but the public wont.
Once i fix the problem, I can take the debug part out of the code. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Feb 05, 2019 9:37 pm Post subject: |
|
|
Never, NEVER EVER debug on a live website.
Install a copy of the hosting environment in a local VM and do all your debugging in there. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|