Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tombrunet committed May 13, 2024
1 parent fa4e49d commit 182b259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions accessibility-checker-extension/src/ts/devtools/indexMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ import { getTabIdAsync } from '../util/tabId';
let tabRef = (await chrome.tabs.query({ index }))[0];
let contentTabId = tabRef.id;
let toolTabId = await getTabIdAsync();
if (!toolTabId || !contentTabId) {
console.warn("Test initializing", toolTabId, contentTabId);
}
let dtc = getDevtoolsController(toolTabId, false, "local", contentTabId);
getDevtoolsAppController(toolTabId, contentTabId);
await dtc.awaitConnection();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class BrowserWrapper {
const tab = await (await this.browser!).newPage()!;
tab.on('console', async e => {
const args = await Promise.all(e.args().map(a => a.jsonValue()));
console.log(...args);
console.log(`[${e.type()}]:`,...args);
});

// https://github.com/puppeteer/puppeteer/issues/8166
Expand Down

0 comments on commit 182b259

Please sign in to comment.