- Where Developers Learn, Share, & Build Careers
I'm trying to add automatic breakpoints using Chrome extensions
Special script id I'm looking for then I add a breakpoint to the same place in the search result
The code I use:
chrome.debugger .sendCommand (debuggeeId, "Debugger. SearchInContent", {scriptId: scriptId, Query: "function"}, function (result) {for result (x result) {var lineNumber = result.result [x] LineNumber + 1; chrome.debugger.sendCommand (debuggeeId, "Debugger. SetbackPoint", {location: {scriptId: scriptId, lineNumber: lineNumber}});}}); In all, I'm getting a breakpoint in the wrong places, I do not even know where the breakpoint is, but it does not stop at the right line to make sure ...
/ P> < P> What do I do?
Comments
Post a Comment