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

Side by Side Diff: tests/standalone/debugger/debug_lib.dart

Issue 53313007: Change dart:io Platform.script to return a URI. Change all uses of Platform.script to work with th… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dom.py docs Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Library used by debugger wire protocol tests (standalone VM debugging). 5 // Library used by debugger wire protocol tests (standalone VM debugging).
6 6
7 library DartDebugger; 7 library DartDebugger;
8 8
9 import "dart:async"; 9 import "dart:async";
10 import "dart:convert"; 10 import "dart:convert";
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 602
603 603
604 bool RunScript(List script, List<String> arguments) { 604 bool RunScript(List script, List<String> arguments) {
605 if (arguments.contains("--debuggee")) { 605 if (arguments.contains("--debuggee")) {
606 return false; 606 return false;
607 } 607 }
608 verboseWire = arguments.contains("--wire"); 608 verboseWire = arguments.contains("--wire");
609 609
610 // Port number 0 means debug target picks a free port dynamically. 610 // Port number 0 means debug target picks a free port dynamically.
611 var targetOpts = [ "--debug:0" ]; 611 var targetOpts = [ "--debug:0" ];
612 targetOpts.add(Platform.script); 612 targetOpts.add(Platform.script.toFilePath());
613 targetOpts.add("--debuggee"); 613 targetOpts.add("--debuggee");
614 print('args: ${targetOpts.join(" ")}'); 614 print('args: ${targetOpts.join(" ")}');
615 615
616 Process.start(Platform.executable, targetOpts).then((Process process) { 616 Process.start(Platform.executable, targetOpts).then((Process process) {
617 print("Debug target process started, pid ${process.pid}."); 617 print("Debug target process started, pid ${process.pid}.");
618 process.stdin.close(); 618 process.stdin.close();
619 var debugger = new Debugger(process, new DebugScript(script)); 619 var debugger = new Debugger(process, new DebugScript(script));
620 }); 620 });
621 return true; 621 return true;
622 } 622 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698