DEBUG mode in Subrion CMS
Posted by Vasily B., Last modified by Andrew G. on 15 August 2014 05:33 AM


By default Subrion software does not display any error warnings or notices. But sometimes you might need to diagnose the script workflow or troubleshoot server specific problem. And here comes the Subrion debugger. There are two ways to activate debug mode in Subrion CMS. In this article I will try to explain each of them.

1) Global debug mode

You can enable it using the following method: edit your ../includes/ file. find the following code (by default it is line #19):

define("INTELLI_DEBUG", 0);

and change it to the following:

define("INTELLI_DEBUG", 1);

Once you do this you will be able to see all the warnings and errors PLUS some extra information related to the software functionality.

Please note this mode activates debug mode for the whole script and everybody can see the debug information. Use it carefully on test sites only.

2) User specific debug mode

You can enable debug mode for your account only. It creates a session for your visitor and you can see the debug information only. Highly recommended for customer websites.

You need to run the following query via Surbion Admin Panel -> System -> DataBase -> Run MySQL query/queries window in order to activate it:

UPDATE `{prefix}config` SET `value` = 'subrion' WHERE `name` = 'debug_pass';

Once you run this query you need to clear your script cache via Subrion Admin Panel -> fire icon at top right -> Clear Cache. You can activate it by passing 'subrion' value to GET 'debugger' param:

That's all.

Thanks for choosing our software products!

(2 vote(s))
Not helpful

Comments (1)
09 January 2012 02:21 PM
And to think I was going to talk to someone in preosn about this.
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).