package js.html
Available on jsThe
Consoleobject provides access to the browser's debugging console (e.g., the Web Console in Firefox). The specifics of how it works vary from browser to browser, but there is a de facto set of features that are typically provided.Documentation Console by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
assert (condition:Bool, data:Rest<Dynamic>):VoidLog a message and stack trace to console if first argument is false.
clear ():VoidClear the console.
count (data:Rest<Dynamic>):VoidLog the number of times this line has been called with the given label.
debug (data:Rest<Dynamic>):Voidlog()
dir (data:Rest<Dynamic>):VoidDisplays an interactive listing of the properties of a specified JavaScript object. This listing lets you use disclosure triangles to examine the contents of child objects.
dirxml (data:Rest<Dynamic>):VoidDisplays an XML/HTML Element representation of the specified object if possible or the JavaScript Object view if it is not.
error (data:Rest<Dynamic>):VoidOutputs an error message. You may use string substitution and additional arguments with this method.
exception (data:Rest<Dynamic>):Voiderror()
group (data:Rest<Dynamic>):VoidCreates a new inline group, indenting all following output by another level. To move back out a level, call groupEnd().
groupCollapsed (data:Rest<Dynamic>):VoidCreates a new inline group, indenting all following output by another level; unlike group(), this starts with the inline group collapsed, requiring the use of a disclosure button to expand it. To move back out a level, call groupEnd().
groupEnd (data:Rest<Dynamic>):VoidExits the current inline group.
info (data:Rest<Dynamic>):VoidInformative logging information. You may use string substitution and additional arguments with this method.
log (data:Rest<Dynamic>):VoidFor general output of logging information. You may use string substitution and additional arguments with this method.
markTimeline ():Voidprofile (data:Rest<Dynamic>):VoidStarts the browser's build-in profiler (for example, the Firefox performance tool). You can specify an optional name for the profile.
profileEnd (data:Rest<Dynamic>):VoidStops the profiler. You can see the resulting profile in the browser's performance tool (for example, the Firefox performance tool).
table (data:Rest<Dynamic>):VoidDisplays tabular data as a table.
time (?time:Dynamic):VoidStarts a timer with a name specified as an input parameter. Up to 10,000 simultaneous timers can run on a given page.
timeEnd (?time:Dynamic):VoidStops the specified timer and logs the elapsed time in seconds since its start.
timeStamp (?data:Dynamic):VoidAdds a marker to the browser's Timeline or Waterfall tool.
timeline ():VoidtimelineEnd ():Voidtrace ():VoidOutputs a stack trace.
warn (data:Rest<Dynamic>):VoidOutputs a warning message. You may use string substitution and additional arguments with this method.
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Console.html