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

Unified Diff: Source/core/inspector/InjectedScriptSource.js

Issue 16143005: monitor console command implemented. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | « Source/core/inspector/InjectedScriptHost.idl ('k') | Source/core/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InjectedScriptSource.js
diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js
index 880b5563ba28a4b6f27631460e717afb534ef603..2acd4e1170926f31ebb71d3efffc35587411fce4 100644
--- a/Source/core/inspector/InjectedScriptSource.js
+++ b/Source/core/inspector/InjectedScriptSource.js
@@ -1159,7 +1159,7 @@ function CommandLineAPI(commandLineAPIImpl, callFrame)
CommandLineAPI.members_ = [
"$", "$$", "$x", "dir", "dirxml", "keys", "values", "profile", "profileEnd",
"monitorEvents", "unmonitorEvents", "inspect", "copy", "clear", "getEventListeners",
- "debug", "undebug", "table"
+ "debug", "undebug", "monitor", "unmonitor", "table"
];
/**
@@ -1318,12 +1318,21 @@ CommandLineAPIImpl.prototype = {
debug: function(fn)
{
- InjectedScriptHost.setBreakpoint(fn);
+ InjectedScriptHost.debugFunction(fn);
},
undebug: function(fn)
{
- InjectedScriptHost.removeBreakpoint(fn);
+ InjectedScriptHost.undebugFunction(fn);
+ },
+
+ monitor: function(fn)
+ {
+ InjectedScriptHost.monitorFunction(fn);
+ },
+
+ unmonitor: function(fn) {
+ InjectedScriptHost.unmonitorFunction(fn);
},
table: function()
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.idl ('k') | Source/core/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698