Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

DEBUG in plain text

 
Post new topic   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: 51

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: 1572

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:   
Post new topic   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