0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 06:28:40 +01:00
nodejs/lib
Jackson Tian a2ea16838f debugger: don't spawn child process in remote mode
When debug in remote mode with host:port or pid, the interface
spawn child process also. If the debugger agent is running, will
get following output:

```
< Error: listen EADDRINUSE :::5858
<     at Object.exports._errnoException (util.js:734:11)
<     at exports._exceptionWithHostPort (util.js:757:20)
<     at Agent.Server._listen2 (net.js:1155:14)
<     at listen (net.js:1181:10)
<     at Agent.Server.listen (net.js:1268:5)
<     at Object.start (_debug_agent.js:21:9)
<     at startup (node.js:68:9)
<     at node.js:799:3
```

This fix won't spawn child process and no more error message was
shown.

When use `iojs debug`, the tip information just like this:

```
Usage: iojs debug script.js
```

This fix will display the advance usage also:

```
Usage: iojs debug script.js
       iojs debug <host>:<port>
       iojs debug -p <pid>
```

Fixes: https://github.com/iojs/io.js/issues/889
PR-URL: https://github.com/iojs/io.js/pull/1282
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-03-27 17:28:48 +01:00
..
internal iojs: introduce internal modules 2015-03-25 22:12:18 +03:00
_debug_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_debugger.js debugger: don't spawn child process in remote mode 2015-03-27 17:28:48 +01:00
_http_agent.js https: don't overwrite servername option 2015-03-10 23:28:04 -07:00
_http_client.js http_client: ensure empty socket on error 2015-03-09 09:25:09 -04:00
_http_common.js iojs: introduce internal modules 2015-03-25 22:12:18 +03:00
_http_incoming.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
_http_outgoing.js http: add flushHeaders and deprecate flush 2015-03-17 00:54:11 +01:00
_http_server.js tracing: add lttng support for tracing on linux 2015-02-09 18:06:57 +01:00
_linklist.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
_stream_duplex.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_stream_transform.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_stream_wrap.js streams: introduce StreamWrap and JSStream 2015-02-24 22:38:21 +03:00
_stream_writable.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_tls_common.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
_tls_legacy.js stream_base: introduce StreamBase 2015-02-22 22:31:57 +03:00
_tls_wrap.js tls_wrap: proxy handle methods in prototype 2015-03-09 14:48:21 -04:00
assert.js assert: simplify logic of testing buffer equality 2015-03-23 19:10:04 -07:00
buffer.js buffer: align chunks on 8-byte boundary 2015-03-11 11:39:57 -07:00
child_process.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
cluster.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
console.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
dgram.js dgram: check close callback is function 2015-02-02 18:44:05 +01:00
dns.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
domain.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
events.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
freelist.js iojs: introduce internal modules 2015-03-25 22:12:18 +03:00
fs.js fs: fix corruption in writeFile and writeFileSync 2015-03-24 18:18:16 -07:00
http.js http: replace util._extend() with [].slice() 2015-02-02 14:52:02 -08:00
https.js https: simpler argument check 2015-02-07 12:00:16 -08:00
module.js iojs: introduce internal modules 2015-03-25 22:12:18 +03:00
net.js net: use cached peername to resolve remote fields 2015-03-16 16:20:16 -04:00
os.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
path.js path: reduce type checking on some methods 2015-03-19 21:11:12 -04:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js querystring: fix broken stringifyPrimitive 2015-03-19 21:47:41 -04:00
readline.js readline: use native codePointAt 2015-02-22 20:07:25 -08:00
repl.js lib: don't error in repl when cwd doesn't exist 2015-03-19 02:11:38 +01:00
smalloc.js smalloc: export constants from C++ 2015-03-04 11:37:12 +03:00
stream.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
string_decoder.js string_decoder: optimize write() 2015-03-25 00:34:34 -04:00
sys.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
timers.js timers: cleanup interval handling 2015-03-26 14:17:56 -04:00
tls.js tls: more secure defaults 2015-02-16 12:33:12 +01:00
tty.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
url.js url: remove redundant assignment in url.parse 2015-03-08 16:36:29 -04:00
util.js util: Check input to util.inherits 2015-03-22 20:45:35 -07:00
v8.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00