2017-07-28 18:48:22 +00:00
|
|
|
Tests Debugger.setScriptSource
|
|
|
|
|
|
|
|
Running test: addLineAfter
|
2018-04-11 06:03:52 +00:00
|
|
|
var x = a;
|
2017-07-28 18:48:22 +00:00
|
|
|
#debugger;
|
2018-04-11 06:03:52 +00:00
|
|
|
return x + b;
|
2017-07-28 18:48:22 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
Break location after LiveEdit:
|
2018-04-11 06:03:52 +00:00
|
|
|
var x = a;
|
2017-07-28 18:48:22 +00:00
|
|
|
#debugger;
|
|
|
|
var x = 3;
|
|
|
|
|
|
|
|
stackChanged: true
|
|
|
|
Protocol.Debugger.stepInto
|
2018-04-11 06:03:52 +00:00
|
|
|
function foo(a,b,c) {
|
|
|
|
var x = #a;
|
2017-07-28 18:48:22 +00:00
|
|
|
debugger;
|
|
|
|
|
|
|
|
|
|
|
|
Running test: addLineBefore
|
2018-04-11 06:03:52 +00:00
|
|
|
var x = a;
|
2017-07-28 18:48:22 +00:00
|
|
|
#debugger;
|
2018-04-11 06:03:52 +00:00
|
|
|
return x + b;
|
2017-07-28 18:48:22 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
Break location after LiveEdit:
|
2018-04-11 06:03:52 +00:00
|
|
|
var x = a;
|
2017-07-28 18:48:22 +00:00
|
|
|
var x = #3;
|
|
|
|
debugger;
|
|
|
|
|
|
|
|
stackChanged: true
|
|
|
|
Protocol.Debugger.stepInto
|
2018-04-11 06:03:52 +00:00
|
|
|
function foo(a,b,c) {
|
|
|
|
var x = #a;
|
2017-07-28 18:48:22 +00:00
|
|
|
var x = 3;
|
|
|
|
|
|
|
|
|
|
|
|
Running test: breakAtFirstLineAddLineAfter
|
|
|
|
function boo() {
|
|
|
|
#debugger;
|
|
|
|
var x = 1;
|
|
|
|
|
|
|
|
---
|
|
|
|
Break location after LiveEdit:
|
|
|
|
function boo() {
|
|
|
|
#debugger;
|
|
|
|
var x = 3;
|
|
|
|
|
|
|
|
stackChanged: true
|
|
|
|
Protocol.Debugger.stepInto
|
|
|
|
function boo() {
|
|
|
|
#debugger;
|
|
|
|
var x = 3;
|
|
|
|
|
|
|
|
|
|
|
|
Running test: breakAtFirstLineAddLineBefore
|
|
|
|
function boo() {
|
|
|
|
#debugger;
|
|
|
|
var x = 1;
|
|
|
|
|
|
|
|
---
|
|
|
|
Break location after LiveEdit:
|
|
|
|
function boo() {
|
|
|
|
var x = #3;
|
|
|
|
debugger;
|
|
|
|
|
|
|
|
stackChanged: true
|
|
|
|
Protocol.Debugger.stepInto
|
|
|
|
var x = 3;
|
|
|
|
#debugger;
|
|
|
|
var x = 1;
|
|
|
|
|