![]() |
Turn on the debug mode
You can turn on the debug mode simple by adding:
PHP Code:
Code:
/*======================================================================*\ To turn it off you may remove that line or change it to: PHP Code:
|
As a vb dev told me when I brought up the security implications of turning debug on: "You shouldn't be using debug mode on a live site. Use it on a private test installation that is controlled by .htaccess permissions."
Keep that in mind and if you plan to use debug on a live board for just a few minutes, make sure to turn it back off when you're done. |
Quote:
I mean the speed limit sign says 55 but I don't do 55... I go a little over. Sometimes I don't wear my seatbelt. Tell me why I should go 55 and wear the seatbelt. :) Then when you're done with that... tell me the reasons that debug mode creates a security issue... kthx :) |
Quote:
|
If your IP doesn't change and your the only one needing to use the debug mode, you can do this.
PHP Code:
|
Thank you.
|
I don't understand why it's not coded to only show the info to admins.
|
Quote:
As I understand this, it's was never meant to be used on a "live" system anyway. |
Actually, I have debug mode permanantly enabled in my config file - I then have a couple of plugins that disable it in the ACP and main forum, so if I need to turn it on I just disable the relevant plugin.
|
Quote:
|
Quote:
|
People who want to do this without editing files. See This Plugin.
|
Quote:
|
hmm, i hacked one board i was admin on to auto set debug mode on in the template editor cause it was the only way you could edit the Master style. (useful when adding new templates so you dont have to add them to EVERY SINGAL skin :p)
|
What if I want to enable debug mode for two different ips?
|
Quote:
PHP Code:
|
Just a side-note:
The in_array(...) ? true : false is redundant, because it returns true/false anyway. :) |
Quote:
|
Hello, I've coded a small Plugin to activate the Debug Mode via the ACP: https://vborg.vbsupport.ru/showthread.php?t=130212
Surviver |
what's the conditional to determine whether or not debug mode is turned on?
For instance, i only want a print_label_row to show within my admincp if debug mode is turned on. |
I think you mean
PHP Code:
Greetings Surviver |
What is debug for?
Does it repair the forum by itself if something is not acting correctly? If so, how can I enact it? |
(regarding plugin product above by Surviver)
Installed in 3.6.7, but it won't show me the queries when I click "Explain" as it does when I put my IP addy in config.php. Tried both using IP and userid modes. Rest of it (forum/ACP) work perfect! (/regarding plugin product above by Surviver) What is the method used to cache templates? I have many red ones, and saw that mentioned here. I'm a newb, and I tried RTFM, but the FM doesn't really include much for devel info. Where is a link to a bit more extensive info on vB Structures (if condition, bbuserinfo, etc?) |
Cleaned up array IP example
Code:
$debug_ips = array('10.10.10.10','10.1.1.1', '10.2.2.2'); |
<a href="https://vborg.vbsupport.ru/showthread.php?t=165623" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=165623</a>
|
Quote:
Care to share the plugin? :rolleyes: I'm forever commenting the line out and uncommenting it. |
That debug mode plugin linked above is simply fantastic. More importantly, why didn't I know that vbulletin options could be added in-browser rather than through XML before I started writing my own plugins? :p
|
All times are GMT. The time now is 02:37 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|