debugger: export port
authorFedor Indutny <fedor.indutny@gmail.com>
Tue, 27 Sep 2011 19:37:56 +0000 (02:37 +0700)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 27 Sep 2011 19:49:03 +0000 (12:49 -0700)
Fixes test-debugger-client.js

Fixes #1782.

lib/_debugger.js

index baec929..2baf363 100644 (file)
@@ -54,7 +54,7 @@ exports.start = function(argv, stdin, stdout) {
   });
 };
 
-
+exports.port = 5858;
 
 
 //
@@ -1437,7 +1437,7 @@ Interface.prototype.killChild = function() {
 Interface.prototype.trySpawn = function(cb) {
   var self = this,
       breakpoints = this.breakpoints || [],
-      port = 5858,
+      port = exports.port,
       host = 'localhost';
 
   this.killChild();