mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #1612 from owncloud/drop-DEBUG
Switch constant DEBUG to proper config option
This commit is contained in:
@@ -49,11 +49,11 @@ information on these log levels.
|
||||
|
||||
Some logging - for example JavaScript console logging - needs manually editing the
|
||||
configuration file.
|
||||
Edit :file:`config/config.php` and add ``define('DEBUG', true);``::
|
||||
Edit :file:`config/config.php` and set ``debug`` to ``true``::
|
||||
|
||||
<?php
|
||||
define('DEBUG',true);
|
||||
$CONFIG = array (
|
||||
'debug' => true,
|
||||
... configuration goes here ...
|
||||
);
|
||||
|
||||
|
||||
@@ -15,9 +15,13 @@ After the `development tool <https://github.com/owncloud/ocdev/blob/master/READM
|
||||
|
||||
.. note:: $BRANCH is the desired ownCloud branch (e.g. stable7 for ownCloud 7, stable8 for ownCloud 8, etc)
|
||||
|
||||
First you want to enable debug mode to get proper error messages. To do that add **DEFINE('DEBUG', true);** at the end of the **owncloud/config/config.php** file::
|
||||
First you want to enable debug mode to get proper error messages. To do that set ``debug`` to ``true`` in the **owncloud/config/config.php** file::
|
||||
|
||||
echo "\nDEFINE('DEBUG', true);" >> owncloud/config/config.php
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
'debug' => true,
|
||||
... configuration goes here ...
|
||||
);
|
||||
|
||||
.. note:: PHP errors are logged to **owncloud/data/owncloud.log**
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@ App config
|
||||
|
||||
<?php
|
||||
|
||||
define("DEBUG", true);
|
||||
|
||||
$CONFIG = array(
|
||||
/* Flag to indicate ownCloud is successfully installed (true = installed) */
|
||||
"installed" => false,
|
||||
|
||||
@@ -4,9 +4,15 @@ Debugging
|
||||
Debug mode
|
||||
----------
|
||||
|
||||
When debug mode is enabled in ownCloud, a variety of debugging features are enabled - see debugging documentation. Add the following to the very end of :file:`/config/config.php` to enable it::
|
||||
When debug mode is enabled in ownCloud, a variety of debugging features are enabled - see debugging documentation. Set ``debug`` to ``true`` in :file:`/config/config.php` to enable it:
|
||||
|
||||
define( "DEBUG", 1);
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
'debug' => true,
|
||||
... configuration goes here ...
|
||||
);
|
||||
|
||||
|
||||
Identifying errors
|
||||
|
||||
@@ -81,9 +81,13 @@ Enabling debug mode
|
||||
|
||||
.. note:: Do not enable this for production! This can create security problems and is only meant for debugging and development!
|
||||
|
||||
To disable JavaScript and CSS caching debugging has to be enabled in :file:`core/config/config.php` by adding this to the end of the file::
|
||||
To disable JavaScript and CSS caching debugging has to be enabled by setting ``debug`` to ``true`` in :file:`core/config/config.php`::
|
||||
|
||||
DEFINE('DEBUG', true);
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
'debug' => true,
|
||||
... configuration goes here ...
|
||||
);
|
||||
|
||||
Keep the code up-to-date
|
||||
------------------------
|
||||
|
||||
Reference in New Issue
Block a user