script: Remove logging in debugger script (#38475)

#38333 adds new code to the debugger script containing some
console.log() calls, which unlike native rust log messages can’t be
turned off. this patch removes them for now, until we find a better
approach.

Testing: no testable changes in this patch
Fixes: noisy logging as of #38333

Signed-off-by: Delan Azabani <dazabani@igalia.com>
Co-authored-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
shuppy 2025-08-05 19:01:35 +08:00 committed by GitHub
parent 11844ca5af
commit ec99e7a8b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,19 +2,13 @@ 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);
};
}
addEventListener("addDebuggee", event => {
const {global} = event;
console.log("[debugger] Adding debuggee");
dbg.addDebuggee(global);
console.log("[debugger] getDebuggees().length =", dbg.getDebuggees().length);
});