Index: runtime/bin/main.cc |
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc |
index 8cba49de9184aacb790a91f4967d2b46efe50751..4ae0c26962ef73d5b4d1cc9745f26167ba545b37 100644 |
--- a/runtime/bin/main.cc |
+++ b/runtime/bin/main.cc |
@@ -943,7 +943,7 @@ void main(int argc, char** argv) { |
if (!DartUtils::SetOriginalWorkingDirectory()) { |
OSError err; |
- fprintf(stderr, "Error determinig current directory: %s\n", err.message()); |
+ fprintf(stderr, "Error determining current directory: %s\n", err.message()); |
fflush(stderr); |
exit(kErrorExitCode); |
} |
@@ -979,6 +979,9 @@ void main(int argc, char** argv) { |
ASSERT(Dart_CurrentIsolate() == NULL); |
// Start the VM service isolate, if necessary. |
if (start_vm_service) { |
+ if (!start_debugger) { |
+ DebuggerConnectionHandler::InitForVmService(); |
+ } |
ASSERT(vm_service_server_ip != NULL && vm_service_server_port >= 0); |
bool r = VmService::Start(vm_service_server_ip , vm_service_server_port); |
if (!r) { |