mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Add new Window globals as debuggees
Signed-off-by: Delan Azabani <dazabani@igalia.com> Co-authored-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
parent
4d7a514923
commit
bae25bb596
3 changed files with 49 additions and 0 deletions
|
@ -1,3 +1,21 @@
|
|||
if (!("dbg" in this)) {
|
||||
dbg = new Debugger;
|
||||
|
||||
dbg.onNewGlobalObject = function(global) {
|
||||
console.log("[debugger] onNewGlobalObject");
|
||||
console.log(this, global);
|
||||
};
|
||||
|
||||
dbg.onNewScript = function(script, global) {
|
||||
console.log("[debugger] onNewScript");
|
||||
console.log(this, script, global);
|
||||
};
|
||||
}
|
||||
|
||||
console.log("[debugger] Executing");
|
||||
|
||||
if ("debuggee" in this) {
|
||||
console.log("[debugger] Adding debuggee");
|
||||
dbg.addDebuggee(debuggee);
|
||||
console.log("[debugger] getDebuggees().length =", dbg.getDebuggees().length);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue