add more V8 debugger commands
This commit is contained in:
parent
5ac9a3e464
commit
addebed77c
2 changed files with 9 additions and 2 deletions
|
|
@ -48,8 +48,11 @@ function testChrome() {
|
||||||
console.log("V8 version:", version.V8Version);
|
console.log("V8 version:", version.V8Version);
|
||||||
});
|
});
|
||||||
|
|
||||||
v8debugger.scripts(4, null, true, function(scripts) {
|
v8debugger.scripts(4, null, false, function(scripts) {
|
||||||
console.log("scripts", scripts);
|
console.log("scripts (short)", scripts);
|
||||||
|
v8debugger.scripts(4, [scripts[0].id], true, function(scripts) {
|
||||||
|
console.log("scripts (full)", scripts);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,3 +2,7 @@ assertPosition = function(row, column, cursor) {
|
||||||
assertEquals(row, cursor.row);
|
assertEquals(row, cursor.row);
|
||||||
assertEquals(column, cursor.column);
|
assertEquals(column, cursor.column);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assertJsonEquals = function(expectedJson, foundJson) {
|
||||||
|
assertEquals(JSON.stringify(expectedJson), JSON.stringify(foundJson));
|
||||||
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue