OLD | NEW |
---|---|
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/inspector/v8-debugger.h" | 5 #include "src/inspector/v8-debugger.h" |
6 | 6 |
7 #include "src/inspector/debugger-script.h" | 7 #include "src/inspector/debugger-script.h" |
8 #include "src/inspector/inspected-context.h" | 8 #include "src/inspector/inspected-context.h" |
9 #include "src/inspector/protocol/Protocol.h" | 9 #include "src/inspector/protocol/Protocol.h" |
10 #include "src/inspector/script-breakpoint.h" | 10 #include "src/inspector/script-breakpoint.h" |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
559 std::vector<String16> breakpointIds; | 559 std::vector<String16> breakpointIds; |
560 if (!hitBreakpointNumbers.IsEmpty()) { | 560 if (!hitBreakpointNumbers.IsEmpty()) { |
561 breakpointIds.reserve(hitBreakpointNumbers->Length()); | 561 breakpointIds.reserve(hitBreakpointNumbers->Length()); |
562 for (uint32_t i = 0; i < hitBreakpointNumbers->Length(); i++) { | 562 for (uint32_t i = 0; i < hitBreakpointNumbers->Length(); i++) { |
563 v8::Local<v8::Value> hitBreakpointNumber = | 563 v8::Local<v8::Value> hitBreakpointNumber = |
564 hitBreakpointNumbers->Get(debuggerContext(), i).ToLocalChecked(); | 564 hitBreakpointNumbers->Get(debuggerContext(), i).ToLocalChecked(); |
565 DCHECK(hitBreakpointNumber->IsInt32()); | 565 DCHECK(hitBreakpointNumber->IsInt32()); |
566 breakpointIds.push_back(String16::fromInteger( | 566 breakpointIds.push_back(String16::fromInteger( |
567 hitBreakpointNumber->Int32Value(debuggerContext()).FromJust())); | 567 hitBreakpointNumber->Int32Value(debuggerContext()).FromJust())); |
568 } | 568 } |
569 if (breakpointIds.size() == 1) { | |
dgozman
2017/05/15 17:01:26
Should we mark "continue to location" breakpoint s
kozy
2017/05/16 01:43:48
Done.
| |
570 v8::Context::Scope contextScope(pausedContext); | |
571 if (agent->shouldIgnoreContinueToLocation(breakpointIds[0])) return; | |
572 } | |
569 } | 573 } |
570 | 574 |
571 m_pausedContext = pausedContext; | 575 m_pausedContext = pausedContext; |
572 m_executionState = executionState; | 576 m_executionState = executionState; |
573 m_pausedContextGroupId = contextGroupId; | 577 m_pausedContextGroupId = contextGroupId; |
574 agent->didPause(InspectedContext::contextId(pausedContext), exception, | 578 agent->didPause(InspectedContext::contextId(pausedContext), exception, |
575 breakpointIds, isPromiseRejection, isUncaught, | 579 breakpointIds, isPromiseRejection, isUncaught, |
576 m_scheduledOOMBreak); | 580 m_scheduledOOMBreak); |
577 int groupId = m_inspector->contextGroupId(pausedContext); | 581 int groupId = m_inspector->contextGroupId(pausedContext); |
578 DCHECK(groupId); | 582 DCHECK(groupId); |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1092 fprintf(stdout, "Async stacks count: %d\n", m_asyncStacksCount); | 1096 fprintf(stdout, "Async stacks count: %d\n", m_asyncStacksCount); |
1093 fprintf(stdout, "Scheduled async tasks: %zu\n", m_asyncTaskStacks.size()); | 1097 fprintf(stdout, "Scheduled async tasks: %zu\n", m_asyncTaskStacks.size()); |
1094 fprintf(stdout, "Created async tasks: %zu\n", | 1098 fprintf(stdout, "Created async tasks: %zu\n", |
1095 m_asyncTaskCreationStacks.size()); | 1099 m_asyncTaskCreationStacks.size()); |
1096 fprintf(stdout, "Async tasks with parent: %zu\n", m_parentTask.size()); | 1100 fprintf(stdout, "Async tasks with parent: %zu\n", m_parentTask.size()); |
1097 fprintf(stdout, "Recurring async tasks: %zu\n", m_recurringTasks.size()); | 1101 fprintf(stdout, "Recurring async tasks: %zu\n", m_recurringTasks.size()); |
1098 fprintf(stdout, "\n"); | 1102 fprintf(stdout, "\n"); |
1099 } | 1103 } |
1100 | 1104 |
1101 } // namespace v8_inspector | 1105 } // namespace v8_inspector |
OLD | NEW |