question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] wait for console debug event using Firefox browser

See original GitHub issue

Using the below code, I am waiting for a console message in debug level to be displayed in the browser, when I run with Chrome it works fine, but when I run with firefox, the console messages that are on debug level are not captured, is there any specific configuration I need to do, to be able to listen for debug level console messages using Firefox browser?

        try {
            await this.page.waitForEvent('console', {
                predicate: async (consoleMessage: ConsoleMessage) => {
                    return consoleMessage.text() === message
                },
                timeout: timeout
            })
        } catch (e) {
            throw new Error(`error waiting for message "${message}" Cause: ${e}`)
        }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cunhabrunocommented, Nov 29, 2021

I have tried using both approaches, I will try to come up with some better example to repro it and get back here once I have it 😃

0reactions
pavelfeldmancommented, Dec 2, 2021

We need more information to act on this report. Please file a new one and link to this issue when you get back to it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

console - Web APIs - MDN Web Docs
Chrome Edge Firefox console Full support. Chrome1. Toggle history Full support. Edge12. Toggle history Full s... assert Full support. Chrome1. Toggle history Full support. Edge12....
Read more >
Faster smarter JavaScript debugging in Firefox DevTools
A rock-solid debugging experience. Fast and reliable debugging is the result of many smaller interactions. From initial loading and source ...
Read more >
debugger - JavaScript - MDN Web Docs
When the debugger is invoked, execution is paused at the debugger statement. It is like a breakpoint in the script source.
Read more >
console.time() - Web APIs - MDN Web Docs
The console.time() method starts a timer you can use to track how long an operation takes. You give each timer a unique name,...
Read more >
Set event listener breakpoints - Firefox Source Docs - Mozilla
Starting with Firefox 69, debugging an application that includes event handlers is simplified because the debugger now includes the ability to automatically ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found