Closed Bug 874052 Opened 12 years ago Closed 4 years ago

Add a method to check if a compartment is in debug mode

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: msucan, Unassigned)

Details

Follow-up from bug 865549: we need some Debugger API to check if a given compartment has any debugger attached. This is need to make sure we are not leaking debug-mode for content and browser windows.
Would be nice to have.
Priority: -- → P3
That would be perfect on IJSDebugger: js/ductwork/debugger/IJSDebugger.idl I don't think it makes sense on Debugger, because it's more of a diagnostic API.
Mihai, does that satisfy your requirements? Can we close this?
JS_GetDebugMode() is now in OldDebugAPI.h. Is this supported API? Is it scriptable / accessible from chrome-privileged JS? Thank you Jim!
It's not available via any JS-visible interface. We should add a method to IJSDebugger (and an implementation on JSDebugger) that calls it. js/ductwork/debugger/IJSDebugger.idl js/ductwork/debugger/JSDebugger.cpp
Component: Developer Tools: Debugger → JavaScript Engine
Product: Firefox → Core
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.