Closed Bug 1174026 Opened 9 years ago Closed 9 years ago

Debugger option to "Pause on Promise reject"

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(firefox41 affected)

RESOLVED DUPLICATE of bug 1156474
Tracking Status
firefox41 --- affected

People

(Reporter: jrburke, Unassigned)

Details

Debugging with promises and finding original sources of errors can be tricky if the reject pathway was followed.

Since promises are a control flow mechanism with the resolve() used to go to the next step, and reject like throwing an exception, it seems useful if the debugger had the ability to pause if the reject() for a promise was called.

I think it is fine to only promise this for native promises, not promise libraries, so maybe the option would be more "Pause on Native Promise reject".
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.