Hi Huy, yeah thats really annoying.
What you could do for now is having 2 js onData functions, the 1st is called while you have no chance to debug and just saves the data in a local js array, the 2nd is your "real" onData function.
If you are in the debugger you call a helper function (in this sample evalData()) to switch between both and feed the saved data to your real function.
var mydata=[];
...
function saveData(data) {
mylog("gICAPI.saveData:"+data);
mydata.push(data);
}
function realOnData(data) {
mylog("gICAPI.onData:"+data);
input.value=data;
}
//call this in the console once you are in the debugger
function evalData() {
gICAPI.onData=realOnData;
for (var i=0;i<mydata.length;i++) {
realOnData(mydata[i]);
}
}
...
onICHostReady =function(version) {
...
gICAPI.onData=saveData;
}
I will register a request for easier debugging of the initial calls tomorrow.
HTH and Regards, Leo