OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 public void suspend() throws DebugException { | 389 public void suspend() throws DebugException { |
390 | 390 |
391 } | 391 } |
392 | 392 |
393 @Override | 393 @Override |
394 public void terminate() throws DebugException { | 394 public void terminate() throws DebugException { |
395 process.terminate(); | 395 process.terminate(); |
396 } | 396 } |
397 | 397 |
398 public void writeToStdout(String message) { | 398 public void writeToStdout(String message) { |
399 //TODO(keertip): implement printing messages to console | 399 fireStreamAppended(message + "\n"); |
400 // process.getStreamMonitor().messageAdded(message); | |
401 } | 400 } |
402 | 401 |
403 protected ServerDebugThread findThread(VmIsolate isolate) { | 402 protected ServerDebugThread findThread(VmIsolate isolate) { |
404 for (ServerDebugThread thread : threads) { | 403 for (ServerDebugThread thread : threads) { |
405 if (thread.getIsolate().getId() == isolate.getId()) { | 404 if (thread.getIsolate().getId() == isolate.getId()) { |
406 return thread; | 405 return thread; |
407 } | 406 } |
408 } | 407 } |
409 | 408 |
410 return null; | 409 return null; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 } | 548 } |
550 | 549 |
551 private void sleep(int millis) { | 550 private void sleep(int millis) { |
552 try { | 551 try { |
553 Thread.sleep(millis); | 552 Thread.sleep(millis); |
554 } catch (Exception exception) { | 553 } catch (Exception exception) { |
555 } | 554 } |
556 } | 555 } |
557 | 556 |
558 } | 557 } |
OLD | NEW |