Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged debug



« Prev 1 2
  1. FAV

    PHP analog of console.log () function

    Debugger analog for PHP: debugger console_log ().
    PHP 4 views posted 1 year ago by cerxx
  2. FAV

    Logging debug arbitrary information

    In certain cases, it is useful to display additional information in a journal that does not report an error, but simply helps in writing your own code. For this PHP provides the function error_log (). This function does not provide formatting, so yo...
    PHP 4 views posted 1 year ago by cerxx
  3. FAV

    Var Debug or Dump Library

    A little pile of functions I use for implementing a nice var dump alternative.
    PHP 6 views posted 7 years ago by philsown
  4. FAV

    Print large arrays in a nicely formatted list of expandable divs

    I use this primarily for debugging purposes. This simply takes an array and creates an expandable item that prints the array out in a \<pre\> wrapping, making it easy to read. Very basic snippet.
    PHP 3 views posted 7 years ago by ringo380
  5. FAV

    PHP error reporting

    PHP saved by 2 people 8 views posted 8 years ago by beneberle
  6. FAV

    Know what’s going on with debug() function

    PHP 3 views posted 8 years ago by florent
  7. FAV

    PHP - Print Debug Information

    Print Debug Information (Exibe as informações de depuração)
    PHP 5 views posted 8 years ago by cdohost
  8. FAV

    PHP Array Debug

    a more useful way of printing php arrays in a nice readable format and able to decode serialized and json_encoded strings.
    PHP 3 views posted 8 years ago by liamchapman
  9. FAV

    CakePHP: SQL-log in array (for controller, e.g.)

    PHP 1 views posted 8 years ago by kentandre
  10. FAV

    Debuging Wordpress code in production stage

    PHP 2 views posted 8 years ago by wnasich
  11. FAV

    CakePHP debug function

    PHP 5 views posted 8 years ago by pacifists
  12. FAV

    Count number of actions taken

    PHP 0 views posted 9 years ago by kendsnyder
  13. FAV

    Pretty print_r()

    PHP 1 views posted 9 years ago by kendsnyder
  14. FAV

    Formatted print_r

    PHP 0 views posted 9 years ago by fadehelix
  15. FAV

    silverstripe debug

    just copied-pasted it so that it can also reside on Sniplr
    PHP 0 views posted 9 years ago by dmistriotis
  16. FAV

    Debug CakePHP queries from controller

    PHP saved by 2 people 5 views posted 9 years ago by jmiller
  17. FAV

    debug PHP for the newbies in error logs with execution time

    I'm originally a sys admin and i love "tail - f /var/log/*" ... so i created a similar function in PHP that will allow me to view in real time what classes/functions/files/lines of my code is being run... The usage is really simple, just set a glo...
    PHP saved by 4 people 5 views posted 9 years ago by sadus
  18. FAV

    debugging (Debugmessage)

    PHP 0 views posted 9 years ago by iusik
  19. FAV

    Debuging Mode and Live Mode - Error Handling

    PHP saved by 6 people 2 views posted 9 years ago by sb_01
  20. FAV

    Enable Debugging for a Specific User

    PHP 1 views posted 9 years ago by fatihturan
  21. FAV

    Debug last TYPO3 SQL-Statement

    You can get the last query by using the following code. Insert the first line before the query and TYPO3 will store each query. You can get the last query with the second line.
    PHP saved by 6 people 5 views posted 9 years ago by pogosheep
  22. FAV

    code to debug variables

    This is the PHP code to debug any variable ..
    PHP saved by 2 people 1 views posted 9 years ago by xkeshav
  23. FAV

    Debug a variable

    When working in PHP I sometimes want to know exactly what is in a variable. This is easy enough to find out, but having this function around it is even easier, as it includes the HTML pre tag making it easier to read, and it allows you to choose how...
    PHP saved by 1 person 3 views posted 9 years ago by Sverri
  24. FAV

    Wordpress Debug Config

    PHP saved by 2 people 1 views posted 9 years ago by chrisdpratt
  25. FAV

    Get all symfony form errors

    Add snippet in BaseFormPropel.class.php
    PHP saved by 1 person 1 views posted 10 years ago by skwok
  26. FAV

    debugging in php

    to
    PHP 3 views posted 10 years ago by mware1205
  27. FAV

    PHP debug time response server

    How to replace sleep(2), for your PHP code. Ideal testing hosting/dns ping.
    PHP saved by 3 people 1 views posted 10 years ago by nicolaspar
  28. FAV

    PHP Debug Display

    A simple replacement for print_r or whatever you use to display debug info.
    PHP saved by 4 people 4 views posted 10 years ago by PeteW
  29. FAV

    var_dump wrapper

    displayed filename and line number. //normal use d( $arg ); //some arguments d( $arg1 , $arg2 , ... );
    PHP 0 views posted 10 years ago by ikimozu
  30. FAV

    Drupal function to return contents of a databasetable (for Debugging)

    Drupal helper function to debug a table. Returns the contents and some explanation of a database table in a rendered format (HTML table). **NOTE** You REALLY do not want to put this function behind any kind of menu_callback and/or on other pages....
    PHP saved by 3 people 0 views posted 11 years ago by berkes
« Prev 1 2