Hacker News new | ask | show | jobs
by 10000100001010 3124 days 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.
2 comments

In fact, the linked tutorial addresses how to do exactly that in Firefox: https://mozilladevelopers.github.io/playground/debugger/04-c...
> 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.

¯\_(ツ)_/¯ I rarely have issues with it