i try to make some chrome extension, i need debug.
i want use chrome dev tool, console.
I write console.log in code, devtool is just clear.
like this.
function doExportToDisk() {
console.log("es on. ");
}
i search on google, i found this.
function doExportToDisk() {
var bkg = chrome.extension.getBackgroundPage();
bkg.console.log('foo');
}
but is dosen't work, too. now i use aleat. but it's too Inconvenience.
chrome.tabs.executeScript({
code: "console.log('loads');
}, callbackFindIDsFromPage);
this is work. but it's so Limited. i want use powerful log. help!