Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

DEBUG in plain text

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
sarahfoxnz
Smarty Regular


Joined: 11 Apr 2010
Posts: 76

PostPosted: Tue Feb 05, 2019 9:59 am    Post subject: DEBUG in plain text Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Feb 05, 2019 9:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP