API: Added Debug::DisableAgent to match existing Debug::EnableAgent
BUG=v8:1573 TEST=cctest test-debug/TestDebuggerAgent Review URL: http://codereview.chromium.org/7978025 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9361 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
5b8a6c1e54
commit
731a70ce13
@ -339,6 +339,11 @@ class EXPORT Debug {
|
||||
static bool EnableAgent(const char* name, int port,
|
||||
bool wait_for_connection = false);
|
||||
|
||||
/**
|
||||
* Disable the V8 builtin debug agent. The TCP/IP connection will be closed.
|
||||
*/
|
||||
static void DisableAgent();
|
||||
|
||||
/**
|
||||
* Makes V8 process all pending debug messages.
|
||||
*
|
||||
|
@ -5470,6 +5470,12 @@ bool Debug::EnableAgent(const char* name, int port, bool wait_for_connection) {
|
||||
wait_for_connection);
|
||||
}
|
||||
|
||||
|
||||
void Debug::DisableAgent() {
|
||||
return i::Isolate::Current()->debugger()->StopAgent();
|
||||
}
|
||||
|
||||
|
||||
void Debug::ProcessDebugMessages() {
|
||||
i::Execution::ProcessDebugMesssages(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user