I am trying to log some data inside of the load() event, but it seems console is not accessible in it.
This code is working perfectly fine, its just I can't log anything to remote debugger from inside of this function.
events: {
load: function() {
console.log('[event:load] start'); // should print to the remote debugger
var series = this.series[0];
setInterval( function() {
var x = (new Date()).getTime();
var y = Math.random() * Math.floor(10000);
console.log("[data] ", y); // should print to the remote debugger
series.addPoint([x, y], true, true);
}, 100);
console.log('[event:load] end'); // should print to the remote debugger
}
}
I am trying to log some data inside of the
load()
event, but it seems console is not accessible in it.This code is working perfectly fine, its just I can't log anything to remote debugger from inside of this function.