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

Unified Diff: src/inspector/v8-debugger.h

Issue 2655253004: [inspector] introduced stepIntoAsync for chained callbacks (Closed)
Patch Set: fixed async/await and added tests Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/js_protocol.json ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-debugger.h
diff --git a/src/inspector/v8-debugger.h b/src/inspector/v8-debugger.h
index c45c76f7f922a33f05052f4bfa7f53e1bb0fc83d..4c5f7928d8060a331a7e28bd85239c28755dedec 100644
--- a/src/inspector/v8-debugger.h
+++ b/src/inspector/v8-debugger.h
@@ -48,6 +48,8 @@ class V8Debugger : public v8::debug::DebugDelegate {
void stepIntoStatement();
void stepOverStatement();
void stepOutOfFunction();
+ Response stepIntoScheduledCallback();
+ bool stepIntoScheduledCallbackAvailable();
Response setScriptSource(
const String16& sourceID, v8::Local<v8::String> newSource, bool dryRun,
@@ -129,9 +131,12 @@ class V8Debugger : public v8::debug::DebugDelegate {
void asyncTaskCreated(void* task, void* parentTask);
void registerAsyncTaskIfNeeded(void* task);
+ void continueProgramImpl();
+
// v8::debug::DebugEventListener implementation.
- void PromiseEventOccurred(v8::debug::PromiseDebugActionType type, int id,
- int parentId) override;
+ void PromiseEventOccurred(v8::Local<v8::Context> context,
+ v8::debug::PromiseDebugActionType type, int id,
+ int parentId, bool breakable) override;
void ScriptCompiled(v8::Local<v8::debug::Script> script,
bool has_compile_error) override;
void BreakProgramRequested(v8::Local<v8::Context> paused_context,
@@ -145,6 +150,11 @@ class V8Debugger : public v8::debug::DebugDelegate {
const v8::debug::Location& start,
const v8::debug::Location& end) override;
+ int currentContextGroupId();
+ void steppingOnPromiseEvent(v8::Local<v8::Context> context,
+ v8::debug::PromiseDebugActionType type,
+ void* task, void* parentPtr);
+
v8::Isolate* m_isolate;
V8InspectorImpl* m_inspector;
int m_enableCount;
@@ -171,6 +181,8 @@ class V8Debugger : public v8::debug::DebugDelegate {
std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks;
protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap;
protocol::HashMap<void*, void*> m_parentTask;
+ protocol::HashSet<void*> m_tasksWithScheduledBreak;
+ void* m_createdPromiseTask = nullptr;
v8::debug::ExceptionBreakState m_pauseOnExceptionsState;
« no previous file with comments | « src/inspector/js_protocol.json ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698