Sebastien Caietta
Andre Wyrwa
@ THE ICONIC
Android 4.4+ and a WebView configured for debugging.
iOS users, rest assured, you can do it with Safari.
console.log("%s has %d points", "Sam", 100);
Also %c for css styles and %o / %O for Node/javascript representation
group('logging')
,
console.log('Getting data from DB', logging)
,
groupEnd()
Get a call stack of your execution point with console.trace()
Log timing with
time('logging')
,
timeEnd('logging')
Show on the timeline panel when your script is executed with
console.timeStamp('my-script')
table([{ firstName: "John", lastName: "Smith" },{firstName:"Jane",lastName:"Doe"}]);
keys(object)
,
values(object)
inspect($0)
,
dir($0)
,
copy($0)
(un)monitor(TI.app.init)
,
debug(TI.app.init)
(un)monitorEvents(window, ["resize", “scroll"])
,
getEventListeners($0)
{sourcemap => true}
in config.rb
great tool for performance and execution analysis
shows in-depth view of what happens when
visual execution overview
shows animation frames
spot memory leaks
console.profile();
...
console.profileEnd();
Steady growth of lows after GC cycles indicate memory leaks.
It's all HTML/JS/CSS - no magic!
It's all HTML/JS/CSS - no magic!
--debug-devtools-frontend=dir
Or read the Contribution Guide on how to contribute to upstream.