Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.h

Issue 369333002: DevTools: Added error message when the command is invoked from the console with exception (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add-evaluate-exception-details
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 virtual void setPauseOnExceptions(ErrorString*, const String& pauseState) OV ERRIDE FINAL; 125 virtual void setPauseOnExceptions(ErrorString*, const String& pauseState) OV ERRIDE FINAL;
126 virtual void evaluateOnCallFrame(ErrorString*, 126 virtual void evaluateOnCallFrame(ErrorString*,
127 const String& callFrameId, 127 const String& callFrameId,
128 const String& expression, 128 const String& expression,
129 const String* objectGroup, 129 const String* objectGroup,
130 const bool* includeCommandLineAPI, 130 const bool* includeCommandLineAPI,
131 const bool* doNotPauseOnExceptionsAndMuteConsole, 131 const bool* doNotPauseOnExceptionsAndMuteConsole,
132 const bool* returnByValue, 132 const bool* returnByValue,
133 const bool* generatePreview, 133 const bool* generatePreview,
134 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, 134 RefPtr<TypeBuilder::Runtime::RemoteObject>& result,
135 TypeBuilder::OptOutput<bool>* wasThrown) OVERRIDE FINAL; 135 TypeBuilder::OptOutput<bool>* wasThrown,
136 RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE FINAL;
136 virtual void compileScript(ErrorString*, const String& expression, const Str ing& sourceURL, const int* executionContextId, TypeBuilder::OptOutput<TypeBuilde r::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERR IDE; 137 virtual void compileScript(ErrorString*, const String& expression, const Str ing& sourceURL, const int* executionContextId, TypeBuilder::OptOutput<TypeBuilde r::Debugger::ScriptId>*, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERR IDE;
137 virtual void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&, const int* executionContextId, const String* objectGroup, const bool* doNotPaus eOnExceptionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE; 138 virtual void runScript(ErrorString*, const TypeBuilder::Debugger::ScriptId&, const int* executionContextId, const String* objectGroup, const bool* doNotPaus eOnExceptionsAndMuteConsole, RefPtr<TypeBuilder::Runtime::RemoteObject>& result, RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE;
138 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE; 139 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE;
139 virtual void setVariableValue(ErrorString*, int in_scopeNumber, const String & in_variableName, const RefPtr<JSONObject>& in_newValue, const String* in_callF rame, const String* in_functionObjectId) OVERRIDE FINAL; 140 virtual void setVariableValue(ErrorString*, int in_scopeNumber, const String & in_variableName, const RefPtr<JSONObject>& in_newValue, const String* in_callF rame, const String* in_functionObjectId) OVERRIDE FINAL;
140 virtual void skipStackFrames(ErrorString*, const String* pattern) OVERRIDE F INAL; 141 virtual void skipStackFrames(ErrorString*, const String* pattern) OVERRIDE F INAL;
141 virtual void setAsyncCallStackDepth(ErrorString*, int depth) OVERRIDE FINAL; 142 virtual void setAsyncCallStackDepth(ErrorString*, int depth) OVERRIDE FINAL;
142 143
143 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data); 144 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data);
144 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 145 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
145 void didRemoveTimer(ExecutionContext*, int timerId); 146 void didRemoveTimer(ExecutionContext*, int timerId);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 int m_minFrameCountForSkip; 247 int m_minFrameCountForSkip;
247 bool m_skipAllPauses; 248 bool m_skipAllPauses;
248 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 249 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
249 AsyncCallStackTracker m_asyncCallStackTracker; 250 AsyncCallStackTracker m_asyncCallStackTracker;
250 }; 251 };
251 252
252 } // namespace WebCore 253 } // namespace WebCore
253 254
254 255
255 #endif // !defined(InspectorDebuggerAgent_h) 256 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698