_debug.html.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php if(option('env') > ENV_PRODUCTION && option('debug')): ?>
  2. <?php if(!$is_http_error): ?>
  3. <p>[<?php echo error_type($errno)?>]
  4. <?php echo $errstr?> (in <strong><?php echo $errfile?></strong> line <strong><?php echo $errline?></strong>)
  5. </p>
  6. <?php endif; ?>
  7. <?php if($debug_args = set('_lim_err_debug_args')): ?>
  8. <h2 id="debug-arguments">Debug arguments</h2>
  9. <pre><code><?php echo h(print_r($debug_args, true))?></code></pre>
  10. <?php endif; ?>
  11. <h2 id="limonade-options">Options</strong></h2>
  12. <pre><code><?php echo h(print_r(option(), true))?></code></pre>
  13. <p class="bt top"><a href="#header">[ &#x2191; ]</a></p>
  14. <h2 id="environment">Environment</h2>
  15. <pre><code><?php echo h(print_r(env(), true))?></code></pre>
  16. <p class="bt top"><a href="#header">[ &#x2191; ]</a></p>
  17. <h2 id="debug-backtrace">Backtrace</h2>
  18. <pre><code><?php echo h(print_r(debug_backtrace(), true))?></code></pre>
  19. <p class="bt top"><a href="#header">[ &#x2191; ]</a></p>
  20. <div id="debug-menu">
  21. <?php if($debug_args = set('_lim_err_debug_args')): ?>
  22. <a href="#debug-arguments">Debug arguments</a> |
  23. <?php endif; ?>
  24. <a href="#limonade-options">Options</a> |
  25. <a href="#environment">Environment</a> |
  26. <a href="#debug-backtrace">Backtrace</a> |
  27. <a href="#header">[ &#x2191; ]</a>
  28. </div>
  29. <?php endif; ?>