add more V8 debugger commands

This commit is contained in:
Fabian Jakobs 2010-05-06 17:06:59 +02:00
commit addebed77c
2 changed files with 9 additions and 2 deletions

View file

@ -48,8 +48,11 @@ function testChrome() {
console.log("V8 version:", version.V8Version);
});
v8debugger.scripts(4, null, true, function(scripts) {
console.log("scripts", scripts);
v8debugger.scripts(4, null, false, function(scripts) {
console.log("scripts (short)", scripts);
v8debugger.scripts(4, [scripts[0].id], true, function(scripts) {
console.log("scripts (full)", scripts);
});
});
});
});

View file

@ -2,3 +2,7 @@ assertPosition = function(row, column, cursor) {
assertEquals(row, cursor.row);
assertEquals(column, cursor.column);
};
assertJsonEquals = function(expectedJson, foundJson) {
assertEquals(JSON.stringify(expectedJson), JSON.stringify(foundJson));
};