Closed Bug 1279615 Opened 8 years ago Closed 5 years ago

The debugger should have "logging breakpoints" aka logpoints

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox50 affected)

RESOLVED DUPLICATE of bug 1513038
Tracking Status
firefox50 --- affected

People

(Reporter: jaws, Unassigned)

Details

Currently, if you want to log when a line is hit, you need to set a conditional breakpoint that will evaluate to false. `console.log("message here") && false` will work to print out that the line has been hit and not interrupt debugging.

This is useful and somewhat necessary for debugging mouse events as interrupting and pausing execution will break the normal event pattern.

It would be nice if there was a separate type of breakpoint that is just used for logging. Visual Studio has this built in to the Conditions window to add "Actions", where you can request to "Log a message to Output Window" (see screenshot: http://screencast.com/t/7kGewO8T).

This shouldn't be that hard to implement if the same `&& false` trick is used behind the scenes, and we could expand the Conditional Breakpoint dialog to include the ability to log.
Several people on the team, myself included, think this would be a really useful feature to have. The only reason I'm marking it as P2 rather than P1 is that there are other things that have more immediate priority right now.
Priority: -- → P2
Product: Firefox → DevTools
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.