diff options
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/debugger.cc | 7 | ||||
-rw-r--r-- | webkit/glue/debugger.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/webkit/glue/debugger.cc b/webkit/glue/debugger.cc index 4841316..266ce49 100644 --- a/webkit/glue/debugger.cc +++ b/webkit/glue/debugger.cc @@ -25,6 +25,13 @@ Debugger::~Debugger() { Detach(); } +void Debugger::Break(bool force) { +#ifdef USING_V8 + DCHECK(attached_); + v8::Debug::DebugBreak(); +#endif +} + void Debugger::Attach() { #ifdef USING_V8 if (!attached_) { diff --git a/webkit/glue/debugger.h b/webkit/glue/debugger.h index f41f192..690d5b6 100644 --- a/webkit/glue/debugger.h +++ b/webkit/glue/debugger.h @@ -31,6 +31,9 @@ public: Debugger(Debugger::Delegate* del); virtual ~Debugger(); + // Break V8 execution. + void Break(bool force); + // Sends a command to the debugger (same as v8 command-line debugger). // Results from the command come asynchronously. // TODO(erikkay): link command output to a particular command |