UNPKG

testplane

Version:

Tests framework based on mocha and wdio

31 lines 1.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDPDebugger = void 0; const emitter_1 = require("../emitter"); /** @link https://chromedevtools.github.io/devtools-protocol/1-3/Debugger/ */ class CDPDebugger extends emitter_1.CDPEventEmitter { constructor(connection) { super(); this._connection = connection; } /** @param sessionId result of "Target.attachToTarget" */ /** @link https://chromedevtools.github.io/devtools-protocol/1-3/Debugger/#method-disable */ async disable(sessionId) { return this._connection.request("Debugger.disable", { sessionId }); } /** @param sessionId result of "Target.attachToTarget" */ /** @link https://chromedevtools.github.io/devtools-protocol/1-3/Debugger/#method-enable */ async enable(sessionId) { return this._connection.request("Debugger.enable", { sessionId }); } /** @link https://chromedevtools.github.io/devtools-protocol/1-3/Debugger/#method-resume */ async resume(sessionId, terminateOnResume) { return this._connection.request("Debugger.resume", { sessionId, params: { terminateOnResume } }); } /** @link https://chromedevtools.github.io/devtools-protocol/1-3/Debugger/#method-getScriptSource */ async getScriptSource(sessionId, scriptId) { return this._connection.request("Debugger.getScriptSource", { sessionId, params: { scriptId } }); } } exports.CDPDebugger = CDPDebugger; //# sourceMappingURL=debugger.js.map