OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium 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 "core/inspector/v8/V8DebuggerAgentImpl.h" | 5 #include "core/inspector/v8/V8DebuggerAgentImpl.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptCallStackFactory.h" | 7 #include "bindings/core/v8/ScriptCallStackFactory.h" |
8 #include "bindings/core/v8/ScriptRegexp.h" | 8 #include "bindings/core/v8/ScriptRegexp.h" |
9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
10 #include "bindings/core/v8/V8Binding.h" | 10 #include "bindings/core/v8/V8Binding.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Breakpoint properties. | 61 // Breakpoint properties. |
62 static const char url[] = "url"; | 62 static const char url[] = "url"; |
63 static const char isRegex[] = "isRegex"; | 63 static const char isRegex[] = "isRegex"; |
64 static const char lineNumber[] = "lineNumber"; | 64 static const char lineNumber[] = "lineNumber"; |
65 static const char columnNumber[] = "columnNumber"; | 65 static const char columnNumber[] = "columnNumber"; |
66 static const char condition[] = "condition"; | 66 static const char condition[] = "condition"; |
67 static const char skipStackPattern[] = "skipStackPattern"; | 67 static const char skipStackPattern[] = "skipStackPattern"; |
68 static const char skipContentScripts[] = "skipContentScripts"; | 68 static const char skipContentScripts[] = "skipContentScripts"; |
69 static const char skipAllPauses[] = "skipAllPauses"; | 69 static const char skipAllPauses[] = "skipAllPauses"; |
70 | 70 |
71 }; | 71 } // namespace DebuggerAgentState; |
72 | 72 |
73 static const int maxSkipStepFrameCount = 128; | 73 static const int maxSkipStepFrameCount = 128; |
74 | 74 |
75 const char V8DebuggerAgent::backtraceObjectGroup[] = "backtrace"; | 75 const char V8DebuggerAgent::backtraceObjectGroup[] = "backtrace"; |
76 | 76 |
77 const int V8DebuggerAgent::unknownAsyncOperationId = 0; | 77 const int V8DebuggerAgent::unknownAsyncOperationId = 0; |
78 | 78 |
79 static String breakpointIdSuffix(V8DebuggerAgentImpl::BreakpointSource source) | 79 static String breakpointIdSuffix(V8DebuggerAgentImpl::BreakpointSource source) |
80 { | 80 { |
81 switch (source) { | 81 switch (source) { |
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 RefPtr<ExceptionDetails> exceptionDetails = ExceptionDetails::create().setTe
xt(toCoreStringWithUndefinedOrNullCheck(message->Get())); | 1710 RefPtr<ExceptionDetails> exceptionDetails = ExceptionDetails::create().setTe
xt(toCoreStringWithUndefinedOrNullCheck(message->Get())); |
1711 exceptionDetails->setLine(message->GetLineNumber()); | 1711 exceptionDetails->setLine(message->GetLineNumber()); |
1712 exceptionDetails->setColumn(message->GetStartColumn()); | 1712 exceptionDetails->setColumn(message->GetStartColumn()); |
1713 v8::Local<v8::StackTrace> messageStackTrace = message->GetStackTrace(); | 1713 v8::Local<v8::StackTrace> messageStackTrace = message->GetStackTrace(); |
1714 if (!messageStackTrace.IsEmpty() && messageStackTrace->GetFrameCount() > 0) | 1714 if (!messageStackTrace.IsEmpty() && messageStackTrace->GetFrameCount() > 0) |
1715 exceptionDetails->setStackTrace(createScriptCallStack(isolate, messageSt
ackTrace, messageStackTrace->GetFrameCount())->buildInspectorArray()); | 1715 exceptionDetails->setStackTrace(createScriptCallStack(isolate, messageSt
ackTrace, messageStackTrace->GetFrameCount())->buildInspectorArray()); |
1716 return exceptionDetails.release(); | 1716 return exceptionDetails.release(); |
1717 } | 1717 } |
1718 | 1718 |
1719 } // namespace blink | 1719 } // namespace blink |
OLD | NEW |