Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22561
| From | "Michael F. Stemper" <michael.stemper@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Eye for bugs |
| Date | 2014-01-10 18:17 -0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <laq2if$928$2@dont-email.me> (permalink) |
| References | <06555351-b90c-4a99-8e22-169eebbc1522@googlegroups.com> <lapl2a$m9k$1@dont-email.me> <100120142309312235%timstreater@greenbee.net> |
On 01/10/2014 05:09 PM, Tim Streater wrote:
> In article <lapl2a$m9k$1@dont-email.me>, Michael F. Stemper
> <michael.stemper@gmail.com> wrote:
>> Then, you can scatter calls to "trace" throughout your script, just as
>> you would calls to "alert". The difference is that you don't need to
>> acknowledge each individual one, and you have a transcript of the
>> entire program's execution:
>>
>> trace( "Changing color to: " + line_col );
>> trace( "Entering fuction foobar" );
>> trace( "Finished with foobar" );
>> trace( "Drawing from (" + x1 + ", " + y1 + ") to (" + x2 + ", " +
>> y2 ")" );
>> trace( "snarf is currently: " + snarf );
>>
>> and so on.
>
> why not just use console.info() ?? You get all this for free.
I never heard of it before today. Now that I know about it, it's what
I'll use in the future.
--
Michael F. Stemper
Indians scattered on dawn's highway bleeding;
Ghosts crowd the young child's fragile eggshell mind.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Eye for bugs jonas.thornvall@gmail.com - 2014-01-06 01:56 -0800
Re: Eye for bugs jonas.thornvall@gmail.com - 2014-01-08 01:48 -0800
Re: Eye for bugs jonas.thornvall@gmail.com - 2014-01-10 06:48 -0800
Re: Eye for bugs Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-10 16:20 +0100
Re: Eye for bugs "Michael F. Stemper" <michael.stemper@gmail.com> - 2014-01-10 14:26 -0600
Re: Eye for bugs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-10 22:12 +0100
Re: Eye for bugs "Michael F. Stemper" <michael.stemper@gmail.com> - 2014-01-10 18:15 -0600
Re: Eye for bugs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-11 15:53 +0100
Re: Eye for bugs Tim Streater <timstreater@greenbee.net> - 2014-01-10 23:09 +0000
Re: Eye for bugs "Michael F. Stemper" <michael.stemper@gmail.com> - 2014-01-10 18:17 -0600
csiph-web