Files
Hristo Deshev 04b9b39c65 Fix doc snippets. (#3882)
* Remove a duplicate snippet: image-create-datauri
* Remove a reference to a missing snippet: console-dump
* Readd a missing snippet: imagesource-resname
* Fix a broken snippet reference: timer-set-ten
* Fix a broken snippet reference: timer-set-fifty
2017-03-28 11:04:37 +03:00

874 B

nav-title title environment description previous_url
console How-To console nativescript Examples for using console /ApiReference/console/HOW-TO

Console

Logging

Logging to the console does not require the "console" module since the console variable is global. It can be used anywhere within your code. You can log your message in several different categories. {%snippet console-log%}

Time

Begins counting a time span for a given name (key). {%snippet console-time%}

Ends a previously started time span through the time method. {%snippet console-timeend%}

Assert

Asserts a boolean condition and prints a message in case the assert fails. {%snippet console-assert%}

Dir

Prints the state of the specified object to the console. {%snippet console-dir%}

Trace

Prints the current stack trace in the console. {%snippet console-trace%}