Debugger.on('paused', ({ callFrames, reason /* , hitBreakpoints */ }) => { // Save execution context's data currentBacktrace = Backtrace.from(callFrames); selectedFrame = currentBacktrace[0]; const { scriptId, lineNumber } = selectedFrame.location; const breakType = reason === 'other' ? 'break' : reason; const script = knownScripts[scriptId]; const scriptUrl = script ? getRelativePath(script.url) : '[unknown]'; const header = `${breakType} in ${scriptUrl}:${lineNumber + 1}`; inspector.suspendReplWhile(() => Promise.all([formatWatchers(true), selectedFrame.list(2)]) .then(([watcherList, context]) => { if (watcherList) { return `${watcherList}\n${inspect(context)}`; } return inspect(context); }).then((breakContext) => { print(`${header}\n${breakContext}`); })); });
this._controller .logger() .info(`[SYNC] reverting deltas ${coreMsg.input.from}-${coreMsg.input.to} of contract ${contract.address}`);