Archive for June, 2009

25 Jun 2009

Beautifull php exceptions Posted by Insane in Php | No responses

Una manera de notificar los errorres del interprete de una forma nice (creo). function _myErrorReporter(){ $template = file_get_contents('my_errors.phtml'); die(str_replace('%str_err%',$e,$template)); } set_error_handler(create_function('$x, $y', 'throw new Exception($y,$x);'), E_ALL & E_NOTICE & E_WARNING); set_exception_handler(create_function('$e', _myErrorReporter($e); '));

Tags:,

22 Jun 2009

Usando Firebug para debugear en actionscript Posted by Insane in Uncategorized | No responses

No es necesaria una gran introducción de firebug, así que solo les dejo el howto. ExternalInterface.call("window.console.log",objectToDebug);