Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 #include "include/dart_debugger_api.h" | 10 #include "include/dart_debugger_api.h" |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 734 // Start the debugger wire protocol handler if necessary. | 734 // Start the debugger wire protocol handler if necessary. |
| 735 if (start_debugger) { | 735 if (start_debugger) { |
| 736 ASSERT(debug_port >= 0); | 736 ASSERT(debug_port >= 0); |
| 737 bool print_msg = verbose_debug_seen || (debug_port == 0); | 737 bool print_msg = verbose_debug_seen || (debug_port == 0); |
| 738 debug_port = DebuggerConnectionHandler::StartHandler(debug_ip, debug_port); | 738 debug_port = DebuggerConnectionHandler::StartHandler(debug_ip, debug_port); |
| 739 if (print_msg) { | 739 if (print_msg) { |
| 740 Log::Print("Debugger listening on port %d\n", debug_port); | 740 Log::Print("Debugger listening on port %d\n", debug_port); |
| 741 } | 741 } |
| 742 } | 742 } |
| 743 | 743 |
| 744 // Start eventhandler now, as it might need the eventhandler to fully | |
|
Søren Gjesse
2013/08/21 13:52:05
Maybe just
// Start event handler.
Anders Johnsen
2013/08/22 11:31:05
Done.
| |
| 745 // initialize. | |
| 746 EventHandler::Start(); | |
| 747 | |
| 744 // Start the VM service isolate, if necessary. | 748 // Start the VM service isolate, if necessary. |
| 745 if (start_vm_service) { | 749 if (start_vm_service) { |
| 746 ASSERT(vm_service_server_port >= 0); | 750 ASSERT(vm_service_server_port >= 0); |
| 747 bool r = VmService::Start(vm_service_server_port); | 751 bool r = VmService::Start(vm_service_server_port); |
| 748 if (!r) { | 752 if (!r) { |
| 749 Log::PrintErr("Could not start VM Service isolate %s", | 753 Log::PrintErr("Could not start VM Service isolate %s", |
| 750 VmService::GetErrorMessage()); | 754 VmService::GetErrorMessage()); |
| 751 } | 755 } |
| 752 } | 756 } |
| 753 | 757 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 866 | 870 |
| 867 return Process::GlobalExitCode(); | 871 return Process::GlobalExitCode(); |
| 868 } | 872 } |
| 869 | 873 |
| 870 } // namespace bin | 874 } // namespace bin |
| 871 } // namespace dart | 875 } // namespace dart |
| 872 | 876 |
| 873 int main(int argc, char** argv) { | 877 int main(int argc, char** argv) { |
| 874 return dart::bin::main(argc, argv); | 878 return dart::bin::main(argc, argv); |
| 875 } | 879 } |
| OLD | NEW |