I embed a js file on every page in google chrome via
chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.executeScript(null,{file:"js/content.js"},function(resultArr){ console.log(resultArr); }); });
content.js
console.log("hello stackoverflow");
I see hello stackoverflow printed in the web page console. But I can not find the source file, so I can debug it. Any idea how?
javascript google-chrome google-chrome-devtools google-chrome-extension
shahalpk
source share