v8/test/inspector/debugger/restore-breakpoint-expected.txt
kozyatinskiy 497dff7809 [inspector] restore provisional breakpoints smarter
For breakpoints which are set by setBreakpointByUrl(url:..) backend calculates source hint on first related breakpoints resolved event and then uses this hint to adjust breakpoint position in later arrived scripts with the same url or on page reload.

Doc: https://docs.google.com/a/google.com/document/d/1VtWo_-jelzEXSNbjESGTtruZngzXgbHLexfTzxNlnjE/edit?usp=sharing

BUG=chromium:688776
R=pfeldman@chromium.org, alph@chromium.org

Review-Url: https://codereview.chromium.org/2671193002
Cr-Commit-Position: refs/heads/master@{#43493}
2017-02-28 16:14:27 +00:00

77 lines
847 B
Plaintext

Checks that debugger agent uses source content to restore breakpoints.
Running test: testSameSource
function foo() {
#boo();
}
function foo() {
#boo();
}
Running test: testOneLineOffset
function foo() {
#boo();
}
function foo() {
#boo();
boo();
}
Running test: testTwoSimilarLinesCloseToOriginalLocation1
function foo() {
#boo();
}
function foo() {
#boo();
newCode();
boo();
boo();
}
Running test: testTwoSimilarLinesCloseToOriginalLocation2
function foo() {
#boo();
}
function foo() {
boo();
newLongCode();
newCode();
#boo();
boo();
}
Running test: testHintIgnoreWhiteSpaces
function foo() {
#boo();
}
function foo() {
foo();
#boo();
}
Running test: testCheckOnlyLimitedOffsets
function foo() {
#boo();
}
function foo() {
#newCode();
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
boo();
}