Welcome To Snipplr

Everyone's Recent Snippets Tagged debug

1 2 3 Next »
This can be used instead of "trace" to populate a text field in addition to the standard trace output. The textfield stays hidden until a selected key combination is pressed, thus allowing you to use it in a staging or, if need be, a production envir...
0 406 posted 12 years ago by Winkyboy
How to replace sleep(2), for your PHP code. Ideal testing hosting/dns ping.
1 410 posted 12 years ago by nicolaspar
A custom compression script I use for auto compression and gzip compression of my css & files. Also allows for 'debug' mode (uncompressed). You simply include the core.css & core.js in your <head>
0 400 posted 12 years ago by iloveitaly
When you can't use firebug to discover cross browser compatibility problems (i.e. internet explorer 6) then what's the fastest way to see the padding and margins? A quick solution is adding a css debug class to your container. Feel free to change...
0 452 posted 12 years ago by chrisjlee
A simple replacement for print_r or whatever you use to display debug info.
2 328 posted 12 years ago by PeteW
displayed filename and line number. //normal use d( $arg ); //some arguments d( $arg1 , $arg2 , ... );
0 270 posted 12 years ago by ikimozu
The 'request' and 'response' objects are chock full of useful info. But console can't usually access them. Here's how: start the server with the -u option, insert a breakpoint where you would like to have access to the controllers/helpers/etc. Wh...
1 373 posted 12 years ago by cczona
Simple list of commands to use within Adobe AIR to help debug an application.
0 269 posted 13 years ago by 1man
This takes whatever object you want (called YOUR_OBJECT in the source) and traces out each child of that object. Pretty useful for debugging an add/removeChild issue.
1 774 posted 13 years ago by benwasilewski
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....
1 477 posted 13 years ago by berkes
For when I catch a bad case of stupid and forget how to write simple php and I need to put the training wheels back on. Drop this in before the closing body tag on a php page to see a list some of what is happening when the page loads.
0 251 posted 13 years ago by inkdeep
I often find something like this lurking at the end of my base templates - it'll show you which queries were run while generating the current page, but they'll start out hidden so as not to be a pain. Of course, before this works, you'll need to s...
1 439 posted 13 years ago by jonhenshaw
recover to normal speed with /sbin/ipfw delete 100 /sbin/ipfw delete 200 ... or reboot
0 396 posted 13 years ago by zingo
Lorsque vous cherchez le cheminement jusqu'à une fonction/méthode particulière, vous ajoutez un « debug_print_backtrace() ; » dans celle-ci et lors de l’exécution ça vous affiche un truc du style : #0 MusicFactory->loadDataForDetail(925...
0 245 posted 13 years ago by olive
An easy debug trick: gives you a variable that you can print in any tpl.php to find out what vars you have available there.
1 401 posted 13 years ago by berkes
prevent errors in other browsers
0 393 posted 13 years ago by localhorst
As root run
0 298 posted 14 years ago by therobot
If you set the NSObjCMessageLoggingEnabled environment variable to "YES", the Objective-C runtime will log all dispatched Objective-C messages to a file named /tmp/msgSends-.
0 315 posted 14 years ago by zingo
Prints content from an NSError or NSArray content from a managedObjectContext.
0 373 posted 14 years ago by zingo
1 393 posted 14 years ago by nicolaspar
Great little debuging snippet found while browsing. The code adds different coloured borders to the assets depending on its level. Leave commented out if not needed.
96 2902 posted 15 years ago by 1man
1 2 3 Next »