I'm working on the chrome.debugger Chrome extensions API, here's the simple example:
chrome.debugger.attach(target, "1.2")
chrome.debugger.sendCommand(target, "Input.insertText", { text: "test." })
chrome.debugger.detach(target, "1.2")
And in the last line, I get the error:
VM7521:1 Uncaught TypeError: Error in invocation of debugger.detach(debugger.Debuggee target, optional function callback): No matching signature.
at <anonymous>:1:17
What's the problem here?
I guess I've solved the problem:
chrome.debugger.detach(target)
Instead of
chrome.debugger.detach(target, "1.2")
I noticed this while reading the Chrome extension samples on Github:
It didn't have the "version" argument in the detach
so.
Hope this helps.