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

Unified Diff: tests/standalone/debugger/debug_lib.dart

Issue 808643004: Support breakpoints in deferred libraries (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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 | « runtime/vm/debugger_api_impl.cc ('k') | tests/standalone/debugger/deferred_code_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/debugger/debug_lib.dart
===================================================================
--- tests/standalone/debugger/debug_lib.dart (revision 42490)
+++ tests/standalone/debugger/debug_lib.dart (working copy)
@@ -397,7 +397,8 @@
class SetBreakpointCommand extends Command {
int line;
- SetBreakpointCommand(int this.line) {
+ String url;
+ SetBreakpointCommand(this.line, this.url) {
template = {"id": 0,
"command": "setBreakpoint",
"params": { "isolateId": 0,
@@ -407,18 +408,21 @@
void send(Debugger debugger) {
assert(debugger.scriptUrl != null);
- template["params"]["url"] = debugger.scriptUrl;
+ if (url == null) {
+ url = debugger.scriptUrl;
+ }
+ template["params"]["url"] = url;
template["params"]["line"] = line;
debugger.sendMessage(template);
}
void matchResponse(Debugger debugger) {
super.matchResponse(debugger);
- print("Set breakpoint at line $line");
+ print("Set breakpoint at line $line in $url");
}
}
-SetBreakpoint(int line) => new SetBreakpointCommand(line);
+SetBreakpoint(int line, {String url}) => new SetBreakpointCommand(line, url);
class Event {
String name;
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | tests/standalone/debugger/deferred_code_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698