Checking pause locations when stepping in, out, and over statements with function calls.
== Running test suite: Debugger.stepping.functionCalls
-- Running test case: Debugger.stepping.MultipleStatementsOnOneLine1
EXPRESSION: setTimeout(entryMultipleStatementsOnOneLine)
STEPS: over, in, out, in, out, resume
PAUSED (debugger-statement)
PAUSE AT entryMultipleStatementsOnOneLine:20:5
16 }
17
18 function entryMultipleStatementsOnOneLine() {
-> 19 |debugger;
20 a(); b();
21 }
22
ACTION: step-over
PAUSE AT entryMultipleStatementsOnOneLine:21:5
17
18 function entryMultipleStatementsOnOneLine() {
19 debugger;
-> 20 |a(); b();
21 }
22
23 function entryMultipleCallsInOneStatement() {
ACTION: step-in
PAUSE AT a:12:5
8 }
9
10 function a() {
-> 11 |return 1;
12 }
13
14 function b() {
ACTION: step-out
PAUSE AT entryMultipleStatementsOnOneLine:21:10
17
18 function entryMultipleStatementsOnOneLine() {
19 debugger;
-> 20 a(); |b();
21 }
22
23 function entryMultipleCallsInOneStatement() {
ACTION: step-in
PAUSE AT b:16:5
12 }
13
14 function b() {
-> 15 |return 2;
16 }
17
18 function entryMultipleStatementsOnOneLine() {
ACTION: step-out
PAUSE AT entryMultipleStatementsOnOneLine:22:2
18 function entryMultipleStatementsOnOneLine() {
19 debugger;
20 a(); b();
-> 21 }|
22
23 function entryMultipleCallsInOneStatement() {
24 debugger;
ACTION: resume
RESUMED
PASS: Should have used all steps.
-- Running test case: Debugger.stepping.MultipleStatementsOnOneLine2
EXPRESSION: setTimeout(entryMultipleStatementsOnOneLine)
STEPS: over, over, over, resume
PAUSED (debugger-statement)
PAUSE AT entryMultipleStatementsOnOneLine:20:5
16 }
17
18 function entryMultipleStatementsOnOneLine() {
-> 19 |debugger;
20 a(); b();
21 }
22
ACTION: step-over
PAUSE AT entryMultipleStatementsOnOneLine:21:5
17
18 function entryMultipleStatementsOnOneLine() {
19 debugger;
-> 20 |a(); b();
21 }
22
23 function entryMultipleCallsInOneStatement() {
ACTION: step-over
PAUSE AT entryMultipleStatementsOnOneLine:21:10
17
18 function entryMultipleStatementsOnOneLine() {
19 debugger;
-> 20 a(); |b();
21 }
22
23 function entryMultipleCallsInOneStatement() {
ACTION: step-over
PAUSE AT entryMultipleStatementsOnOneLine:22:2
18 function entryMultipleStatementsOnOneLine() {
19 debugger;
20 a(); b();
-> 21 }|
22
23 function entryMultipleCallsInOneStatement() {
24 debugger;
ACTION: resume
RESUMED
PASS: Should have used all steps.
-- Running test case: Debugger.stepping.MultipleCallsInOneStatement1
EXPRESSION: setTimeout(entryMultipleCallsInOneStatement)
STEPS: over, in, out, in, out, in, out, resume
PAUSED (debugger-statement)
PAUSE AT entryMultipleCallsInOneStatement:25:5
21 }
22
23 function entryMultipleCallsInOneStatement() {
-> 24 |debugger;
25 add(a(), b());
26 }
27
ACTION: step-over
PAUSE AT entryMultipleCallsInOneStatement:26:5
22
23 function entryMultipleCallsInOneStatement() {
24 debugger;
-> 25 |add(a(), b());
26 }
27
28 function entryMultilineStatement() {
ACTION: step-in
PAUSE AT a:12:5
8 }
9
10 function a() {
-> 11 |return 1;
12 }
13
14 function b() {
ACTION: step-out
PAUSE AT entryMultipleCallsInOneStatement:26:14
22
23 function entryMultipleCallsInOneStatement() {
24 debugger;
-> 25 add(a(), |b());
26 }
27
28 function entryMultilineStatement() {
ACTION: step-in
PAUSE AT b:16:5
12 }
13
14 function b() {
-> 15 |return 2;
16 }
17
18 function entryMultipleStatementsOnOneLine() {
ACTION: step-out
PAUSE AT entryMultipleCallsInOneStatement:26:5
22
23 function entryMultipleCallsInOneStatement() {
24 debugger;
-> 25 |add(a(), b());
26 }
27
28 function entryMultilineStatement() {
ACTION: step-in
PAUSE AT add:8:5
4
5
5
5
5