497dff7809
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}
77 lines
847 B
Plaintext
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();
|
|
}
|