Welcome To Snipplr


Everyone's Recent Snippets Tagged debug



« Prev 1 2 3
Debugger analog for PHP: debugger console_log ().
0 1418 posted 6 years ago by cerxx
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...
0 1216 posted 6 years ago by cerxx
// create a variable to toggle debugging // to use it, just call debug(with,any,optional,parameters) debug(x,y,z); // it will try to guess what type of message to log, or you can specify in the first parameter debug("error",x,y,z);
1 1137 posted 9 years ago by brandonjp
Surprisingly often I want to print all the values of some object for debugging reasons, and if the object has a lot of different get methods (and toString is not good for this), it is a pain to write all the print commands. That's when this snippet i...
0 1073 posted 10 years ago by mcaordie
A little pile of functions I use for implementing a nice var dump alternative.
0 867 posted 12 years ago by philsown
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.
0 1007 posted 12 years ago by ringo380
0 893 posted 12 years ago by cphoover
In javascript there is no function for printing variables like you have PHP, I use print_r and var_dump a lot in PHP for dumping variables so I wanted to create a simular function in javascript.
0 1059 posted 12 years ago by satie83
0 890 posted 12 years ago by munrobaggers
0 855 posted 12 years ago by inky76
0 912 posted 12 years ago by tilakapash
1 870 posted 13 years ago by beneberle
////////////////////////////////////////////////////////// function debug($ch,$force=false) { global $debugphp,$iphost,$ch_debug; $ip=getenv('REMOTE_ADDR'); if ((($debugphp==true)||($force==true))&&(in_array($ip, $iphost))) {...
0 854 posted 13 years ago by kspal
Print Debug Information (Exibe as informações de depuração)
0 882 posted 13 years ago by cdohost
a more useful way of printing php arrays in a nice readable format and able to decode serialized and json_encoded strings.
0 939 posted 13 years ago by liamchapman
Get a list of providers for DTrace that OSX supports. (DTrace is a probe/profiling tool created by Sun that came with Mac OS X starting with Leopard.)
0 964 posted 13 years ago by zingo
0 932 posted 13 years ago by pacifists
0 880 posted 13 years ago by mrAlexGray
See: http://docs.python.org/library/smtpd.html You might use other port instead 25.
0 922 posted 13 years ago by wnasich
0 915 posted 13 years ago by chrism
0 824 posted 13 years ago by krustyflakes
0 835 posted 13 years ago by kendsnyder
0 871 posted 13 years ago by kendsnyder
0 748 posted 13 years ago by AndreasKT
0 806 posted 13 years ago by fadehelix
ReflectionToStringBuilder wraps a class and outputs a string describing its attributes, more or less similar to var_dump in PHP
1 1384 posted 13 years ago by miceno
0 888 posted 13 years ago by haureal
just copied-pasted it so that it can also reside on Sniplr
0 715 posted 13 years ago by dmistriotis
« Prev 1 2 3