| Index: bin/main.cc
|
| ===================================================================
|
| --- bin/main.cc (revision 13083)
|
| +++ bin/main.cc (working copy)
|
| @@ -663,6 +663,12 @@
|
|
|
| DartUtils::SetOriginalWorkingDirectory();
|
|
|
| + // Start the debugger wire protocol handler if necessary.
|
| + if (start_debugger) {
|
| + ASSERT(debug_port != 0);
|
| + DebuggerConnectionHandler::StartHandler(debug_ip, debug_port);
|
| + }
|
| +
|
| // Call CreateIsolateAndSetup which creates an isolate and loads up
|
| // the specified application script.
|
| char* error = NULL;
|
| @@ -714,12 +720,6 @@
|
| }
|
| }
|
|
|
| - // Start the debugger wire protocol handler if necessary.
|
| - if (start_debugger) {
|
| - ASSERT(debug_port != 0);
|
| - DebuggerConnectionHandler::StartHandler(debug_ip, debug_port);
|
| - }
|
| -
|
| // Lookup and invoke the top level main function.
|
| result = Dart_Invoke(library, Dart_NewString("main"), 0, NULL);
|
| if (Dart_IsError(result)) {
|
|
|