MCPcopy Index your code
hub / github.com/nodejs/node / reset

Method reset

lib/internal/debugger/inspect_client.js:228–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 }
227
228 reset() {
229 const pending = this._pending;
230 if (pending) {
231 ArrayPrototypeForEach(ObjectValues(pending), (handler) => {
232 handler({
233 code: 'ERR_DEBUGGER_ERROR',
234 message: 'Debugger session ended',
235 });
236 });
237 }
238 if (this._http) {
239 this._http.destroy();
240 }
241 if (this._socket) {
242 this._socket.destroy();
243 }
244 this._http = null;
245 this._lastId = 0;
246 this._socket = null;
247 this._pending = {};
248 this._unprocessed = new FastBuffer();
249 }
250
251 callMethod(method, params) {
252 return new Promise((resolve, reject) => {

Callers 6

constructorMethod · 0.95
_handleChunkMethod · 0.95
_connectWebsocketMethod · 0.95
onChildOutputMethod · 0.45
cleanupMethod · 0.45
killChildMethod · 0.45

Calls 2

handlerFunction · 0.50
destroyMethod · 0.45

Tested by

no test coverage detected