Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: bin/main.cc

Issue 11026011: Add isolate event handler setup in order to be able to propagate isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/dbg_connection.cc ('k') | include/dart_debugger_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/main.cc
===================================================================
--- bin/main.cc (revision 13129)
+++ 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)) {
« no previous file with comments | « bin/dbg_connection.cc ('k') | include/dart_debugger_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698