ScriptDebugServer(bool isInWorkerThread = false);
~ScriptDebugServer();
- virtual ListenerSet* getListenersForGlobalObject(JSC::JSGlobalObject*) = 0;
+ virtual ListenerSet& getListeners() = 0;
virtual void didPause(JSC::JSGlobalObject*) = 0;
virtual void didContinue(JSC::JSGlobalObject*) = 0;
virtual void runEventLoopWhilePaused() = 0;
virtual bool isContentScript(JSC::ExecState*) const = 0;
- virtual void reportException(JSC::ExecState*, JSC::JSValue) const = 0;
+ virtual void reportException(JSC::ExecState*, JSC::Exception*) const = 0;
bool evaluateBreakpointAction(const ScriptBreakpointAction&);
- void dispatchFunctionToListeners(JavaScriptExecutionCallback, JSC::JSGlobalObject*);
+ void dispatchFunctionToListeners(JavaScriptExecutionCallback);
void dispatchFunctionToListeners(const ListenerSet& listeners, JavaScriptExecutionCallback);
void dispatchDidPause(ScriptDebugListener*);
void dispatchDidContinue(ScriptDebugListener*);
void dispatchBreakpointActionSound(JSC::ExecState*, int breakpointActionIdentifier);
void dispatchBreakpointActionProbe(JSC::ExecState*, const ScriptBreakpointAction&, const Deprecated::ScriptValue& sample);
- bool m_doneProcessingDebuggerEvents;
+ bool m_doneProcessingDebuggerEvents {true};
private:
typedef HashMap<JSC::BreakpointID, BreakpointActions> BreakpointIDToActionsMap;
virtual void sourceParsed(JSC::ExecState*, JSC::SourceProvider*, int errorLine, const String& errorMsg) override final;
- virtual bool needPauseHandling(JSC::JSGlobalObject*) override final;
- virtual void handleBreakpointHit(const JSC::Breakpoint&) override final;
- virtual void handleExceptionInBreakpointCondition(JSC::ExecState*, JSC::JSValue exception) const override final;
- virtual void handlePause(JSC::Debugger::ReasonForPause, JSC::JSGlobalObject*) override final;
+ virtual bool needPauseHandling(JSC::JSGlobalObject*) override final { return true; }
+ virtual void handleBreakpointHit(JSC::JSGlobalObject*, const JSC::Breakpoint&) override final;
+ virtual void handleExceptionInBreakpointCondition(JSC::ExecState*, JSC::Exception*) const override final;
+ virtual void handlePause(JSC::JSGlobalObject*, JSC::Debugger::ReasonForPause) override final;
virtual void notifyDoneProcessingDebuggerEvents() override final;
- unsigned m_hitCount;
- bool m_callingListeners;
+ Deprecated::ScriptValue exceptionOrCaughtValue(JSC::ExecState*);
+
+ bool m_callingListeners {false};
+
BreakpointIDToActionsMap m_breakpointIDToActions;
+
+ unsigned m_nextProbeSampleId {1};
+ unsigned m_currentProbeBatchId {0};
};
} // namespace Inspector