debugbar.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Debugbar Settings
  6. |--------------------------------------------------------------------------
  7. |
  8. | Debugbar is enabled by default, when debug is set to true in app.php.
  9. | You can override the value by setting enable to true or false instead of null.
  10. |
  11. */
  12. 'enabled' => null,
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Storage settings
  16. |--------------------------------------------------------------------------
  17. |
  18. | DebugBar stores data for session/ajax requests.
  19. | You can disable this, so the debugbar stores data in headers/session,
  20. | but this can cause problems with large data collectors.
  21. | By default, file storage (in the storage folder) is used. Redis and PDO
  22. | can also be used. For PDO, run the package migrations first.
  23. |
  24. */
  25. 'storage' => array(
  26. 'enabled' => true,
  27. 'driver' => 'file', // redis, file, pdo, custom
  28. 'path' => storage_path('debugbar'), // For file driver
  29. 'connection' => null, // Leave null for default connection (Redis/PDO)
  30. 'provider' => '' // Instance of StorageInterface for custom driver
  31. ),
  32. /*
  33. |--------------------------------------------------------------------------
  34. | Vendors
  35. |--------------------------------------------------------------------------
  36. |
  37. | Vendor files are included by default, but can be set to false.
  38. | This can also be set to 'js' or 'css', to only include javascript or css vendor files.
  39. | Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
  40. | and for js: jquery and and highlight.js
  41. | So if you want syntax highlighting, set it to true.
  42. | jQuery is set to not conflict with existing jQuery scripts.
  43. |
  44. */
  45. 'include_vendors' => true,
  46. /*
  47. |--------------------------------------------------------------------------
  48. | Capture Ajax Requests
  49. |--------------------------------------------------------------------------
  50. |
  51. | The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
  52. | you can use this option to disable sending the data through the headers.
  53. |
  54. */
  55. 'capture_ajax' => true,
  56. /*
  57. |--------------------------------------------------------------------------
  58. | Clockwork integration
  59. |--------------------------------------------------------------------------
  60. |
  61. | The Debugbar can emulate the Clockwork headers, so you can use the Chrome
  62. | Extension, without the server-side code. It uses Debugbar collectors instead.
  63. |
  64. */
  65. 'clockwork' => false,
  66. /*
  67. |--------------------------------------------------------------------------
  68. | DataCollectors
  69. |--------------------------------------------------------------------------
  70. |
  71. | Enable/disable DataCollectors
  72. |
  73. */
  74. 'collectors' => array(
  75. 'phpinfo' => true, // Php version
  76. 'messages' => true, // Messages
  77. 'time' => true, // Time Datalogger
  78. 'memory' => true, // Memory usage
  79. 'exceptions' => true, // Exception displayer
  80. 'log' => true, // Logs from Monolog (merged in messages if enabled)
  81. 'db' => true, // Show database (PDO) queries and bindings
  82. 'views' => true, // Views with their data
  83. 'route' => true, // Current route information
  84. 'laravel' => false, // Laravel version and environment
  85. 'events' => false, // All events fired
  86. 'default_request' => false, // Regular or special Symfony request logger
  87. 'symfony_request' => true, // Only one can be enabled..
  88. 'mail' => true, // Catch mail messages
  89. 'logs' => false, // Add the latest log messages
  90. 'files' => false, // Show the included files
  91. 'config' => false, // Display config settings
  92. 'auth' => false, // Display Laravel authentication status
  93. 'gate' => false, // Display Laravel Gate checks
  94. 'session' => true, // Display session data
  95. ),
  96. /*
  97. |--------------------------------------------------------------------------
  98. | Extra options
  99. |--------------------------------------------------------------------------
  100. |
  101. | Configure some DataCollectors
  102. |
  103. */
  104. 'options' => array(
  105. 'auth' => array(
  106. 'show_name' => false, // Also show the users name/email in the debugbar
  107. ),
  108. 'db' => array(
  109. 'with_params' => true, // Render SQL with the parameters substituted
  110. 'timeline' => false, // Add the queries to the timeline
  111. 'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files.
  112. 'explain' => array( // EXPERIMENTAL: Show EXPLAIN output on queries
  113. 'enabled' => false,
  114. 'types' => array('SELECT'), // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+
  115. ),
  116. 'hints' => true, // Show hints for common mistakes
  117. ),
  118. 'mail' => array(
  119. 'full_log' => false
  120. ),
  121. 'views' => array(
  122. 'data' => false, //Note: Can slow down the application, because the data can be quite large..
  123. ),
  124. 'route' => array(
  125. 'label' => true // show complete route on bar
  126. ),
  127. 'logs' => array(
  128. 'file' => null
  129. ),
  130. ),
  131. /*
  132. |--------------------------------------------------------------------------
  133. | Inject Debugbar in Response
  134. |--------------------------------------------------------------------------
  135. |
  136. | Usually, the debugbar is added just before <body>, by listening to the
  137. | Response after the App is done. If you disable this, you have to add them
  138. | in your template yourself. See http://phpdebugbar.com/docs/rendering.html
  139. |
  140. */
  141. 'inject' => true,
  142. /*
  143. |--------------------------------------------------------------------------
  144. | DebugBar route prefix
  145. |--------------------------------------------------------------------------
  146. |
  147. | Sometimes you want to set route prefix to be used by DebugBar to load
  148. | its resources from. Usually the need comes from misconfigured web server or
  149. | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
  150. |
  151. */
  152. 'route_prefix' => '_debugbar',
  153. );