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

Unified Diff: src/inspector/v8-debugger-agent-impl.cc

Issue 2655253004: [inspector] introduced stepIntoAsync for chained callbacks (Closed)
Patch Set: added is_breakable into PromiseCreatedEvent Created 3 years, 11 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
Index: src/inspector/v8-debugger-agent-impl.cc
diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc
index 998d3723caeacb1041aaa1248db6a38ecd76f85b..2a7573c8f5db09e53a04d7d2fcbff00405001f33 100644
--- a/src/inspector/v8-debugger-agent-impl.cc
+++ b/src/inspector/v8-debugger-agent-impl.cc
@@ -458,6 +458,24 @@ bool V8DebuggerAgentImpl::isFunctionBlackboxed(const String16& scriptId,
std::distance(ranges.begin(), itStartRange) % 2;
}
+void V8DebuggerAgentImpl::asyncTaskCreated() {
+ if (m_scheduledDebuggerStep == StepInto) {
+ breakProgram(protocol::Debugger::Paused::ReasonEnum::CallbackScheduled,
+ nullptr);
+ }
+}
+
+Response V8DebuggerAgentImpl::stepIntoAsync() {
+ return m_debugger->stepIntoAsync();
+}
+
+void V8DebuggerAgentImpl::asyncTaskStarted() {
+ schedulePauseOnNextStatement(protocol::Debugger::Paused::ReasonEnum::Other,
+ nullptr);
+}
+
+void V8DebuggerAgentImpl::asyncTaskFinished() { cancelPauseOnNextStatement(); }
+
std::unique_ptr<protocol::Debugger::Location>
V8DebuggerAgentImpl::resolveBreakpoint(const String16& breakpointId,
const ScriptBreakpoint& breakpoint,

Powered by Google App Engine
This is Rietveld 408576698