Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: Debugging Errors -- a conundrum -- I think Date: Mon, 20 Jan 2014 12:50:35 -0700 Lines: 43 Message-ID: References: <52dd55dd$0$6554$9b4e6d93@newsspool4.arcor-online.net> X-Trace: individual.net dlkDkDfhLdvA9WvRH90bXArPOwK4HAIW2Otfai9YX0hT8MvIQS Cancel-Lock: sha1:NI+zuX3Dc51v56dI5R9WzKb0BZA= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:22724 Hi Christoph: I found (on stackoverflow) the following script to activate console.log on my IE8 dev machine (a win xp (sp3) system). I place the code below (as console.js) just before , then I tested. Console.log worked in my suspect onclick function, but I still can't find why my 'hang' occurs on IE8 and not on Chrome ?? Thanks, -Mel Smith ******************************************* // Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn' ]; var length = methods.length; var console = (window.console = window.console || {}); while (length--) { method = methods[length]; // Only stub undefined methods. if (!console[method]) { console[method] = noop; } } }()); ********************************************