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

Unified Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 14294004: Implementing console command 'debug'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 7 years, 8 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
Index: Source/core/inspector/InspectorDebuggerAgent.cpp
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp
index 7f47e056638d16ea8466ad0f04f7f1c0109cd788..6105d825670a0379df03ee2b7f70fac23ae2add9 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -767,6 +767,15 @@ void ScriptDebugListener::Script::reportMemoryUsage(MemoryObjectInfo* memoryObje
info.addMember(sourceMappingURL, "sourceMappingURL");
}
+void InspectorDebuggerAgent::setBreakpointInFrontend(const String& scriptId, int lineNumber, int columnNumber)
+{
+ RefPtr<TypeBuilder::Debugger::Location> location = TypeBuilder::Debugger::Location::create()
+ .setScriptId(scriptId)
+ .setLineNumber(lineNumber);
+ location->setColumnNumber(columnNumber);
+ m_frontend->setBreakpointRequested(location);
+}
+
void InspectorDebuggerAgent::reset()
{
m_scripts.clear();

Powered by Google App Engine
This is Rietveld 408576698