devtools-client-adapters
v0.0.24
Published
Devtools Client Adapters
Downloads
29
Keywords
Readme
DevTools Client Adapters
DevTools Client Adapters provides a common interface for:
- getting firefox, chrome, and node tabs
- connecting to a tab
- communicating with the tab over RDP
get Firefox, Chrome, and Node tabs
client.firefox.connectClient().then(tabs => {
console.log(tabs)
});
client.chrome.connectClient().then(tabs => {
console.log(tabs)
});
client.chrome.connectNodeClient().then(tabs => {
console.log(tabs)
});
client.chrome.connectClient().then(tabs => {
console.log(tabs)
});
connect to either Firefox, Chrome, or Node
client.startDebuggingTab(tab)
client.startDebuggingNode(tab)
send commands to the process
tab.setBreakpoint({ sourceId: 23, line: 2, column: 0 })
tab.resume()
receive events from the process
tab.on("paused", pauseData => console.log(pauseData))