void Debugger::callEvent(CallFrame* callFrame) { if (m_isPaused) return; PauseReasonDeclaration reason(*this, PausedAfterCall); updateCallFrameAndPauseIfNeeded(callFrame); }
void ScriptDebugServer::didReachBreakpoint(const DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int lineNumber) { if (m_paused) return; m_pauseOnNextStatement = true; updateCallFrameAndPauseIfNeeded(debuggerCallFrame, sourceID, lineNumber); }
void Debugger::willExecuteProgram(CallFrame* callFrame) { if (m_isPaused) return; PauseReasonDeclaration reason(*this, PausedAtStartOfProgram); updateCallFrameAndPauseIfNeeded(callFrame); }
void ScriptDebugServer::didReachBreakpoint(CallFrame* callFrame) { if (m_paused) return; m_pauseOnNextStatement = true; setShouldPause(true); updateCallFrameAndPauseIfNeeded(callFrame); }
void Debugger::didReachBreakpoint(CallFrame* callFrame) { if (m_isPaused) return; PauseReasonDeclaration reason(*this, PausedForDebuggerStatement); m_pauseOnNextStatement = true; setSteppingMode(SteppingModeEnabled); updateCallFrameAndPauseIfNeeded(callFrame); }
void ScriptDebugServer::exception(const DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int lineNumber, bool hasHandler) { if (m_paused) return; if (m_pauseOnExceptionsState == PauseOnAllExceptions || (m_pauseOnExceptionsState == PauseOnUncaughtExceptions && !hasHandler)) m_pauseOnNextStatement = true; updateCallFrameAndPauseIfNeeded(debuggerCallFrame, sourceID, lineNumber); }
void ScriptDebugServer::exception(CallFrame* callFrame, JSValue, bool hasHandler) { if (m_paused) return; if (m_pauseOnExceptionsState == PauseOnAllExceptions || (m_pauseOnExceptionsState == PauseOnUncaughtExceptions && !hasHandler)) { m_pauseOnNextStatement = true; setShouldPause(true); } updateCallFrameAndPauseIfNeeded(callFrame); }
void ScriptDebugServer::didExecuteProgram(const DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int lineNumber) { if (m_paused) return; updateCallFrameAndPauseIfNeeded(debuggerCallFrame, sourceID, lineNumber); // Treat stepping over the end of a program like stepping out. if (m_currentCallFrame == m_pauseOnCallFrame) m_pauseOnCallFrame = m_currentCallFrame->caller(); m_currentCallFrame = m_currentCallFrame->caller(); }
void Debugger::willExecuteProgram(CallFrame* callFrame) { if (m_isPaused) return; PauseReasonDeclaration reason(*this, PausedAtStartOfProgram); // FIXME: This check for whether we're debugging a worker thread is a workaround // for https://bugs.webkit.org/show_bug.cgi?id=102637. Remove it when we rework // the debugger implementation to not require callbacks. if (!m_isInWorkerThread) updateCallFrameAndPauseIfNeeded(callFrame); else if (isStepping()) updateCallFrame(callFrame); }
void ScriptDebugServer::returnEvent(const DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int lineNumber) { if (m_paused) return; updateCallFrameAndPauseIfNeeded(debuggerCallFrame, sourceID, lineNumber); // detach may have been called during pauseIfNeeded if (!m_currentCallFrame) return; // Treat stepping over a return statement like stepping out. if (m_currentCallFrame == m_pauseOnCallFrame) m_pauseOnCallFrame = m_currentCallFrame->caller(); m_currentCallFrame = m_currentCallFrame->caller(); }
void ScriptDebugServer::returnEvent(CallFrame* callFrame) { if (m_paused) return; updateCallFrameAndPauseIfNeeded(callFrame); // detach may have been called during pauseIfNeeded if (!m_currentCallFrame) return; // Treat stepping over a return statement like stepping out. if (m_currentCallFrame == m_pauseOnCallFrame) m_pauseOnCallFrame = m_currentCallFrame->callerFrameSkippingVMEntrySentinel(); m_currentCallFrame = m_currentCallFrame->callerFrameSkippingVMEntrySentinel(); }
void Debugger::exception(CallFrame* callFrame, JSValue exception, bool hasHandler) { if (m_isPaused) return; PauseReasonDeclaration reason(*this, PausedForException); if (m_pauseOnExceptionsState == PauseOnAllExceptions || (m_pauseOnExceptionsState == PauseOnUncaughtExceptions && !hasHandler)) { m_pauseOnNextStatement = true; setSteppingMode(SteppingModeEnabled); } m_hasHandlerForExceptionCallback = true; m_currentException = exception; updateCallFrameAndPauseIfNeeded(callFrame); m_currentException = JSValue(); m_hasHandlerForExceptionCallback = false; }
void ScriptDebugServer::didExecuteProgram(CallFrame* callFrame) { if (m_paused) return; updateCallFrameAndPauseIfNeeded(callFrame); // Treat stepping over the end of a program like stepping out. if (!m_currentCallFrame) return; if (m_currentCallFrame == m_pauseOnCallFrame) { m_pauseOnCallFrame = m_currentCallFrame->callerFrameSkippingVMEntrySentinel(); if (!m_currentCallFrame) return; } m_currentCallFrame = m_currentCallFrame->callerFrameSkippingVMEntrySentinel(); }
void Debugger::returnEvent(CallFrame* callFrame) { if (m_isPaused) return; PauseReasonDeclaration reason(*this, PausedBeforeReturn); updateCallFrameAndPauseIfNeeded(callFrame); // detach may have been called during pauseIfNeeded if (!m_currentCallFrame) return; // Treat stepping over a return statement like stepping out. if (m_currentCallFrame == m_pauseOnCallFrame) m_pauseOnCallFrame = m_currentCallFrame->callerFrameSkippingVMEntrySentinel(); m_currentCallFrame = m_currentCallFrame->callerFrameSkippingVMEntrySentinel(); }
void Debugger::didExecuteProgram(CallFrame* callFrame) { if (m_isPaused) return; PauseReasonDeclaration reason(*this, PausedAtEndOfProgram); updateCallFrameAndPauseIfNeeded(callFrame); // Treat stepping over the end of a program like stepping out. if (!m_currentCallFrame) return; if (m_currentCallFrame == m_pauseOnCallFrame) { m_pauseOnCallFrame = m_currentCallFrame->callerFrameSkippingVMEntrySentinel(); if (!m_currentCallFrame) return; } m_currentCallFrame = m_currentCallFrame->callerFrameSkippingVMEntrySentinel(); }
void ScriptDebugServer::atStatement(CallFrame* callFrame) { if (!m_paused) updateCallFrameAndPauseIfNeeded(callFrame); }
void ScriptDebugServer::atStatement(const DebuggerCallFrame& debuggerCallFrame, intptr_t sourceID, int lineNumber) { if (!m_paused) updateCallFrameAndPauseIfNeeded(debuggerCallFrame, sourceID, lineNumber); }
void ScriptDebugServer::willExecuteProgram(CallFrame* callFrame) { if (!m_paused) updateCallFrameAndPauseIfNeeded(callFrame); }