| 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 #ifndef V8_INSPECTOR_V8DEBUGGER_H_ | 5 #ifndef V8_INSPECTOR_V8DEBUGGER_H_ |
| 6 #define V8_INSPECTOR_V8DEBUGGER_H_ | 6 #define V8_INSPECTOR_V8DEBUGGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 String16 setBreakpoint(const ScriptBreakpoint&, int* actualLineNumber, | 36 String16 setBreakpoint(const ScriptBreakpoint&, int* actualLineNumber, |
| 37 int* actualColumnNumber); | 37 int* actualColumnNumber); |
| 38 void removeBreakpoint(const String16& breakpointId); | 38 void removeBreakpoint(const String16& breakpointId); |
| 39 void setBreakpointsActivated(bool); | 39 void setBreakpointsActivated(bool); |
| 40 bool breakpointsActivated() const { return m_breakpointsActivated; } | 40 bool breakpointsActivated() const { return m_breakpointsActivated; } |
| 41 | 41 |
| 42 v8::debug::ExceptionBreakState getPauseOnExceptionsState(); | 42 v8::debug::ExceptionBreakState getPauseOnExceptionsState(); |
| 43 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState); | 43 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState); |
| 44 void setPauseOnNextStatement(bool); | 44 void setPauseOnNextStatement(bool); |
| 45 bool canBreakProgram(); | 45 bool canBreakProgram(); |
| 46 bool hasUserFrameOnStack(); |
| 46 void breakProgram(); | 47 void breakProgram(); |
| 47 void continueProgram(); | 48 void continueProgram(); |
| 48 void stepIntoStatement(); | 49 void stepIntoStatement(); |
| 49 void stepOverStatement(); | 50 void stepOverStatement(); |
| 50 void stepOutOfFunction(); | 51 void stepOutOfFunction(); |
| 51 void clearStepping(); | |
| 52 | 52 |
| 53 Response setScriptSource( | 53 Response setScriptSource( |
| 54 const String16& sourceID, v8::Local<v8::String> newSource, bool dryRun, | 54 const String16& sourceID, v8::Local<v8::String> newSource, bool dryRun, |
| 55 protocol::Maybe<protocol::Runtime::ExceptionDetails>*, | 55 protocol::Maybe<protocol::Runtime::ExceptionDetails>*, |
| 56 JavaScriptCallFrames* newCallFrames, protocol::Maybe<bool>* stackChanged, | 56 JavaScriptCallFrames* newCallFrames, protocol::Maybe<bool>* stackChanged, |
| 57 bool* compileError); | 57 bool* compileError); |
| 58 JavaScriptCallFrames currentCallFrames(int limit = 0); | 58 JavaScriptCallFrames currentCallFrames(int limit = 0); |
| 59 | 59 |
| 60 // Each script inherits debug data from v8::Context where it has been | 60 // Each script inherits debug data from v8::Context where it has been |
| 61 // compiled. | 61 // compiled. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 static void v8OOMCallback(void* data); | 106 static void v8OOMCallback(void* data); |
| 107 | 107 |
| 108 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 108 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 109 void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 109 void handleProgramBreak(v8::Local<v8::Context> pausedContext, |
| 110 v8::Local<v8::Object> executionState, | 110 v8::Local<v8::Object> executionState, |
| 111 v8::Local<v8::Value> exception, | 111 v8::Local<v8::Value> exception, |
| 112 v8::Local<v8::Array> hitBreakpoints, | 112 v8::Local<v8::Array> hitBreakpoints, |
| 113 bool isPromiseRejection = false, | 113 bool isPromiseRejection = false, |
| 114 bool isUncaught = false); | 114 bool isUncaught = false); |
| 115 | 115 |
| 116 static bool v8IsBlackboxedCallback(v8::Local<v8::debug::Script> script, |
| 117 const v8::debug::Location& start, |
| 118 const v8::debug::Location& end, |
| 119 void* data); |
| 120 |
| 116 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, | 121 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, |
| 117 v8::Local<v8::Object>); | 122 v8::Local<v8::Object>); |
| 118 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, | 123 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, |
| 119 v8::Local<v8::Object>); | 124 v8::Local<v8::Object>); |
| 120 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, | 125 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, |
| 121 v8::Local<v8::Function>); | 126 v8::Local<v8::Function>); |
| 122 | 127 |
| 123 enum ScopeTargetKind { | 128 enum ScopeTargetKind { |
| 124 FUNCTION, | 129 FUNCTION, |
| 125 GENERATOR, | 130 GENERATOR, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; | 179 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
| 175 | 180 |
| 176 WasmTranslation m_wasmTranslation; | 181 WasmTranslation m_wasmTranslation; |
| 177 | 182 |
| 178 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 183 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
| 179 }; | 184 }; |
| 180 | 185 |
| 181 } // namespace v8_inspector | 186 } // namespace v8_inspector |
| 182 | 187 |
| 183 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 188 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |