View Full Version : Turn on the debug mode
You can turn on the debug mode simple by adding:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to your includes/config.php just before
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(which is at the end of the file ;))
To turn it off you may remove that line or change it to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
GilbertZ
29 Aug 2005, 01:06
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.
ProperMethodz
04 Oct 2005, 06:07
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.
What are the possible security issues with this.
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 :)
Colin F
04 Oct 2005, 06:42
What are the possible security issues with this.
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 :)
From what I understand, as anyone can see what your board is doing (query explain for example), it would be much easier to find security holes in your code.
TruckMuddr
14 Oct 2005, 08:01
If your IP doesn't change and your the only one needing to use the debug mode, you can do this.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Code Monkey
15 Dec 2005, 06:06
I don't understand why it's not coded to only show the info to admins.
Hellcat
15 Dec 2005, 08:39
I don't understand why it's not coded to only show the info to admins.
Maybe you want to test some things without beeing logged in as admin, or beeing logged in at all.
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.
Mudvayne
16 Dec 2005, 16:52
If your IP doesn't change and your the only one needing to use the debug mode, you can do this.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
any idea to use userid instead of ip address?
EricaJoy
01 Jan 2006, 18:33
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.care to release that little goodie?
Logikos
07 Feb 2006, 19:55
People who want to do this without editing files. See This Plugin (http://www.vbulletin.org/forum/showthread.php?s=&threadid=104933).
Delphiprogrammi
07 Feb 2006, 23:20
People who want to do this without editing files. See This Plugin (http://www.vbulletin.org/forum/showthread.php?s=&threadid=104933).
ey that's a nice one !!!! cheers
Carnage
18 Mar 2006, 21:40
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)
Antivirus
26 Sep 2006, 16:37
What if I want to enable debug mode for two different ips?
Delphiprogrammi
26 Sep 2006, 18:47
What if I want to enable debug mode for two different ips?
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
that should do it offcource replace 127.0.0.1 with your ip's
Adrian Schneider
26 Sep 2006, 19:34
Just a side-note:
The in_array(...) ? true : false is redundant, because it returns true/false anyway. :)
Antivirus
24 Oct 2006, 18:01
Just a side-note:
The in_array(...) ? true : false is redundant, because it returns true/false anyway. :)
I think you're correct sirAdrian, Delphiprogrammi's code doesn't seem to work for me.
Surviver
30 Oct 2006, 13:35
Hello, I've coded a small Plugin to activate the Debug Mode via the ACP: http://www.vbulletin.org/forum/showthread.php?t=130212
Surviver
Antivirus
09 Dec 2006, 01:12
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.
Surviver
05 Jan 2007, 21:10
I think you mean
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
;)
Greetings Surviver
MARKETPROFITS
07 Jan 2007, 04:36
What is debug for?
Does it repair the forum by itself if something is not acting correctly?
If so, how can I enact it?
troybtj
12 Jul 2007, 01:22
(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?)
flynnibus
29 Jan 2008, 03:15
Cleaned up array IP example
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace 10.x.x.x IPs above with the IPs you want to use of course.
1Unreal
07 Jul 2009, 19:26
http://www.vbulletin.org/forum/showthread.php?t=165623
James Birkett
01 Oct 2009, 21:52
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.
(bumps an old article)
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
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.