3094c4002b
The debugger utilizes the source position while single stepping ("Step-in") through the source to go from statement to statement and skipping some expressions along the way. The debugger remembers the "statement position" of the last stepping action. This works well in general but falls flat for loops that only have a single statement in them. Every step lands on the same statement, just one loop iteration later. We detect this case by checking if we are in the same frame and have the exact same bytecode offset as the last step action. Note that this also fixes "frame restarting" should we have restarted a function while paused at the beginning of that function. R=jarin@chromium.org Bug: chromium:1401674 Change-Id: Id0a5753ed7cc9f23f22d869368d88e1c4b48566d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4135881 Commit-Queue: Simon Zünd <szuend@chromium.org> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Cr-Commit-Position: refs/heads/main@{#85107} |
||
---|---|---|
.. | ||
console | ||
cpu-profiler | ||
debugger | ||
heap-profiler | ||
regress | ||
runtime | ||
sessions | ||
BUILD.gn | ||
DEPS | ||
DIR_METADATA | ||
frontend-channel.h | ||
inspector-test.cc | ||
inspector.status | ||
isolate-data.cc | ||
isolate-data.h | ||
json-parse-expected.txt | ||
json-parse.js | ||
OWNERS | ||
print-method-not-found-expected.txt | ||
print-method-not-found.js | ||
protocol-test.js | ||
task-runner.cc | ||
task-runner.h | ||
tasks.cc | ||
tasks.h | ||
testcfg.py | ||
utils.cc | ||
utils.h | ||
wasm-inspector-test.js |