diff options
author | Erik Verbruggen <[email protected]> | 2013-11-14 14:16:50 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-11-14 14:43:38 +0100 |
commit | f0349e789a984de7646865b07c125a63406516bd (patch) | |
tree | 5985a6b19c14b72829dac4068d1c499a77478b4c /src/qml/jsruntime/qv4function_p.h | |
parent | 0ca8351e261055984f82b28bd65e4e15c9820e73 (diff) |
V4 debugging: fix step-over and step-out.
- step-out: only stop if we’re leaving the context for the function we
previously stopped at, so intermediate calls between the current
position and the end do not stop the engine
- step-over: set breakpoints on all lines in current function and
continue to run. When hitting a breakpoint, see if we are in the same
context, because recursive calls might happen. Breakpoints on all
lines are needed, because the (pure) next line might be jumped over
(like when doing step-over a single-line then clause, where the next
line might be in the else clause).
Change-Id: Idf35dc740ca64fae5079162162906490a96af2a7
Reviewed-by: Lars Knoll <[email protected]>
Reviewed-by: Kai Koehne <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4function_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h index 8a8f6a5d79..5d284f1b2b 100644 --- a/src/qml/jsruntime/qv4function_p.h +++ b/src/qml/jsruntime/qv4function_p.h @@ -112,7 +112,7 @@ struct Function { void mark(ExecutionEngine *e); int lineNumberForProgramCounter(qptrdiff offset) const; - qptrdiff programCounterForLine(quint32 line) const; + QList<qptrdiff> programCountersForAllLines() const; }; } |