vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Turn on the debug mode (https://vborg.vbsupport.ru/showthread.php?t=82835)

MrNase 06-09-2005 10:00 PM

Turn on the debug mode
 
You can turn on the debug mode simple by adding:

PHP Code:

$config['Misc']['debug'] = true

to your includes/config.php just before
Code:

/*======================================================================*\
|| ####################################################################

(which is at the end of the file ;))


To turn it off you may remove that line or change it to:
PHP Code:

 $config['Misc']['debug'] = false


GilbertZ 08-28-2005 11:06 PM

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 10-04-2005 04:07 AM

Quote:

Originally Posted by GilbertZ
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 10-04-2005 04:42 AM

Quote:

Originally Posted by ProperMethodz
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 10-14-2005 06:01 AM

If your IP doesn't change and your the only one needing to use the debug mode, you can do this.

PHP Code:

 $config['Misc']['debug'] = ($_SERVER['REMOTE_ADDR'] == 'xxx.xxx.xxx.xxx'); 


Daniel 12-15-2005 02:28 AM

Thank you.

Code Monkey 12-15-2005 04:06 AM

I don't understand why it's not coded to only show the info to admins.

Hellcat 12-15-2005 06:39 AM

Quote:

Originally Posted by JumpD
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.

Paul M 12-15-2005 07:09 AM

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 12-16-2005 02:52 PM

Quote:

Originally Posted by TruckMuddr
If your IP doesn't change and your the only one needing to use the debug mode, you can do this.

PHP Code:

 $config['Misc']['debug'] = ($_SERVER['REMOTE_ADDR'] == 'xxx.xxx.xxx.xxx'); 


any idea to use userid instead of ip address?


All times are GMT. The time now is 06:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01150 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete