{"id":26,"date":"2008-05-16T17:40:00","date_gmt":"2008-05-16T22:40:00","guid":{"rendered":"http:\/\/thaylin.info\/blog\/?p=26"},"modified":"2009-02-10T12:03:59","modified_gmt":"2009-02-10T17:03:59","slug":"utilizing-firefox-firebug","status":"publish","type":"post","link":"https:\/\/www.thaylin.com\/blog\/2008\/05\/16\/utilizing-firefox-firebug\/","title":{"rendered":"Utilizing FireFox Firebug"},"content":{"rendered":"<p>FireBug, for those that don&#8217;t know about it, is a great little tool for debugging your apps online.\u00a0<\/p>\n<p>One of the many things you can do is use it as a logger. This is excellent for flash development debugging on the server as you can easliy utilize the console.log, console.debug, console.error, console.warn, and console.info. The following is a quick class I wrote up to use this:<\/p>\n<pre lang=\"actionscript\" line=\"1\" colla=\"+\">\r\npackage com.mylibrary.log\r\n\r\n{\r\n import flash.external.ExternalInterface;\r\n public class FireBugLogger\r\n {\r\n  public static function log(s:String):void{\r\n   ExternalInterface.call(\"console.log\", s)\r\n  }\r\n  public static function debug(s:String):void{\r\n   ExternalInterface.call(\"console.debug\", s)\r\n  }\r\n  public static function info(s:String):void{\r\n   ExternalInterface.call(\"console.info\", s)\r\n  }\r\n  public static function warn(s:String):void{\r\n   ExternalInterface.call(\"console.warn\", s)\r\n  }\r\n  public static function error(s:String):void{\r\n   ExternalInterface.call(\"console.error\", s)\r\n  }\r\n }\r\n}<\/pre>\n<p>So now you just import your FireBugLogger package and call FireBugLogger.log(&#8216;HI THERE&#8217;), et voila!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FireBug, for those that don&#8217;t know about it, is a great little tool for debugging your apps online.\u00a0 One of the many things you can do is use it as a logger. This is excellent for flash development debugging on the server as you can easliy utilize the console.log, console.debug, console.error, console.warn, and console.info. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,9,8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts\/26"}],"collection":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":1,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thaylin.com\/blog\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}