| 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 463 |
| 464 breakpointManager.dispose(); | 464 breakpointManager.dispose(); |
| 465 } | 465 } |
| 466 | 466 |
| 467 private void fireStreamAppended(String message) { | 467 private void fireStreamAppended(String message) { |
| 468 IStreamMonitor monitor = getProcess().getStreamsProxy().getOutputStreamMonit
or(); | 468 IStreamMonitor monitor = getProcess().getStreamsProxy().getOutputStreamMonit
or(); |
| 469 | 469 |
| 470 try { | 470 try { |
| 471 // monitor.fireStreamAppended(message); | 471 // monitor.fireStreamAppended(message); |
| 472 Method method = getMethod(monitor, "fireStreamAppended"); | 472 Method method = getMethod(monitor, "fireStreamAppended"); |
| 473 method.invoke(monitor, message); | 473 if (method != null) { |
| 474 method.invoke(monitor, message); |
| 475 } |
| 474 } catch (Throwable t) { | 476 } catch (Throwable t) { |
| 475 | 477 DartDebugCorePlugin.logInfo(message); |
| 476 } | 478 } |
| 477 } | 479 } |
| 478 | 480 |
| 479 private void firstIsolateInit(VmIsolate isolate) { | 481 private void firstIsolateInit(VmIsolate isolate) { |
| 480 breakpointManager.connect(isolate); | 482 breakpointManager.connect(isolate); |
| 481 } | 483 } |
| 482 | 484 |
| 483 private DartBreakpoint getBreakpointFor(VmLocation location) { | 485 private DartBreakpoint getBreakpointFor(VmLocation location) { |
| 484 if (location == null) { | 486 if (location == null) { |
| 485 return null; | 487 return null; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 580 |
| 579 } | 581 } |
| 580 | 582 |
| 581 private void sleep(int millis) { | 583 private void sleep(int millis) { |
| 582 try { | 584 try { |
| 583 Thread.sleep(millis); | 585 Thread.sleep(millis); |
| 584 } catch (Exception exception) { | 586 } catch (Exception exception) { |
| 585 } | 587 } |
| 586 } | 588 } |
| 587 } | 589 } |
| OLD | NEW |