diff options
Diffstat (limited to 'src/qml/jsruntime/qv4debugging.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4debugging.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4debugging.cpp b/src/qml/jsruntime/qv4debugging.cpp index 7d19c7804e..92273417a9 100644 --- a/src/qml/jsruntime/qv4debugging.cpp +++ b/src/qml/jsruntime/qv4debugging.cpp @@ -205,13 +205,13 @@ void Debugger::setBreakOnThrow(bool onoff) m_breakOnThrow = onoff; } -Debugger::ExecutionState Debugger::currentExecutionState(int lineNumber) const +Debugger::ExecutionState Debugger::currentExecutionState() const { // ### Locking ExecutionState state; state.function = getFunction(); state.fileName = state.function->sourceFile(); - state.lineNumber = lineNumber; + state.lineNumber = engine()->currentContext()->lineNumber; return state; } @@ -445,7 +445,7 @@ QVector<ExecutionContext::ContextType> Debugger::getScopeTypes(int frame) const return types; } -void Debugger::maybeBreakAtInstruction(int lineNumber) +void Debugger::maybeBreakAtInstruction() { if (m_runningJob) // do not re-enter when we're doing a job for the debugger. return; @@ -454,7 +454,7 @@ void Debugger::maybeBreakAtInstruction(int lineNumber) if (m_breakPoints.isEmpty()) return; - ExecutionState state = currentExecutionState(lineNumber); + ExecutionState state = currentExecutionState(); if (m_gatherSources) { m_gatherSources->run(); |