3 ms·
You can at least both "Log Message" and "Evaluate" in Chrome with conditional break points. Calling console.log is falsy, so calling it from conditional break p
by 10000100001010 9y ago
You can at least both "Log Message" and "Evaluate" in Chrome with conditional break points. Calling console.log is falsy, so calling it from conditional break points just causes it to log the message (you also have access to any variables in scope of the breakpoint that you can use to build the message). You can do the same thing with executing random JavaScript. Just put the statement and add && false to make sure it always returns false.
- masklinn 9y ago> You can at least both "Log Message" and "Evaluate" in Chrome with conditional break points. You can obviously do that in any browser, it's just inflexible, ugly, error-prone and inconvenient.
- 10000100001010 9y ago¯\_(ツ)_/¯ I rarely have issues with it
- Vinnl 9y agoIn fact, the linked tutorial addresses how to do exactly that in Firefox: https://mozilladevelopers.github.io/playground/debugger/04-conditional-breakpoints https://mozilladevelopers.github.io/playground/debugger/04-c...