I send a message to the background page from the devtools page,if eval script has a result,bg page can receive the msg ,but if Command Line like "monitorEvents",it just 'undefined'. enter image description here
Is there a way to get all the results?
chrome.devtools.inspectedWindow.eval(
"inspect(monitorEvents(window,'click'))",
function(result, isException) {
log(isException);
backgroundPageConnection.postMessage({
name: 'init',
data:result,
tabId: chrome.devtools.inspectedWindow.tabId
});
}
);