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

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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 virtual void setPauseOnExceptions(ErrorString*, const String& pauseState) OV ERRIDE FINAL; 126 virtual void setPauseOnExceptions(ErrorString*, const String& pauseState) OV ERRIDE FINAL;
127 virtual void evaluateOnCallFrame(ErrorString*, 127 virtual void evaluateOnCallFrame(ErrorString*,
128 const String& callFrameId, 128 const String& callFrameId,
129 const String& expression, 129 const String& expression,
130 const String* objectGroup, 130 const String* objectGroup,
131 const bool* includeCommandLineAPI, 131 const bool* includeCommandLineAPI,
132 const bool* doNotPauseOnExceptionsAndMuteConsole, 132 const bool* doNotPauseOnExceptionsAndMuteConsole,
133 const bool* returnByValue, 133 const bool* returnByValue,
134 const bool* generatePreview, 134 const bool* generatePreview,
135 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, 135 RefPtr<TypeBuilder::Runtime::RemoteObject>& result,
136 TypeBuilder::OptOutput<bool>* wasThrown) OVERRIDE FINAL; 136 TypeBuilder::OptOutput<bool>* wasThrown,
137 RefPtr<TypeBuilder::Debugger::ExceptionDetails>&) OVERRIDE FINAL;
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; 138 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;
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; 139 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;
139 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE; 140 virtual void setOverlayMessage(ErrorString*, const String*) OVERRIDE;
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; 141 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;
141 virtual void skipStackFrames(ErrorString*, const String* pattern) OVERRIDE F INAL; 142 virtual void skipStackFrames(ErrorString*, const String* pattern) OVERRIDE F INAL;
142 virtual void setAsyncCallStackDepth(ErrorString*, int depth) OVERRIDE FINAL; 143 virtual void setAsyncCallStackDepth(ErrorString*, int depth) OVERRIDE FINAL;
143 144
144 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data); 145 void schedulePauseOnNextStatement(InspectorFrontend::Debugger::Reason::Enum breakReason, PassRefPtr<JSONObject> data);
145 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 146 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
146 void didRemoveTimer(ExecutionContext*, int timerId); 147 void didRemoveTimer(ExecutionContext*, int timerId);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 int m_minFrameCountForSkip; 255 int m_minFrameCountForSkip;
255 bool m_skipAllPauses; 256 bool m_skipAllPauses;
256 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 257 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
257 AsyncCallStackTracker m_asyncCallStackTracker; 258 AsyncCallStackTracker m_asyncCallStackTracker;
258 }; 259 };
259 260
260 } // namespace WebCore 261 } // namespace WebCore
261 262
262 263
263 #endif // !defined(InspectorDebuggerAgent_h) 264 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptSource.js ('k') | Source/core/inspector/InspectorDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698