bugger-v8-client
Version:
Client for v8 debug protocol
20 lines (16 loc) • 391 B
JavaScript
;
function getBody(raw) {
return raw.body;
}
module.exports = function(DebugClient) {
DebugClient.prototype.setexceptionbreak = function (opts) {
if (typeof opts === 'undefined') {
opts = { type: 'uncaught', enabled: true };
}
/*jshint validthis:true */
return (
this._sendRequest('setexceptionbreak', opts)
.then(getBody)
);
};
};