TypeError: Error in invocation of debugger.detach; No matching signature

Viewed 29

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?

2 Answers

Close visual studio and open, it should solve your problem

Related