Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: src/api.cc

Issue 2962007: Debugger: introduce parametrized debug break. (Closed)
Patch Set: Comments addressed Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8-debug.h ('k') | src/debug.h » ('j') | src/debug.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 07d9eb0ac716de7087d98b9803f33368d674df27..b3c77d8cdde5043a50593ab2e16c79d081f7c0e4 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -4213,6 +4213,12 @@ void Debug::DebugBreak() {
}
+void Debug::DebugBreakForCommand(ClientData* data) {
+ if (!i::V8::IsRunning()) return;
+ i::Debugger::EnqueueDebugCommand(data);
+}
+
+
static v8::Debug::MessageHandler message_handler = NULL;
static void MessageHandlerWrapper(const v8::Debug::Message& message) {
« no previous file with comments | « include/v8-debug.h ('k') | src/debug.h » ('j') | src/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698