0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00
nodejs/test/debugger
Jackson Tian b33e9da8f9 debugger: introduce exec method for debugger
In debugger, the usage of `repl` very ugly. I'd like there is a `p`
like gdb. So the `exec` is coming.

Usage:

```
$ ./iojs debug ~/git/node_research/server.js
< Debugger listening on port 5858
connecting to 127.0.0.1:5858 ... ok
break in /Users/jacksontian/git/node_research/server.js:1
> 1 var http = require('http');
  2
  3 http.createServer(function (req, res) {
debug> exec process.title
/Users/jacksontian/git/io.js/out/Release/iojs
debug>
```

And the `repl`:

```
debug> repl
Press Ctrl + C to leave debug repl
> process.title
'/Users/jacksontian/git/io.js/out/Release/iojs'
debug>
(^C again to quit)
```

The enter and leave debug repl is superfluous.

R-URL: https://github.com/nodejs/node/pull/1491
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2015-11-17 12:11:40 -08:00
..
helper-debugger-repl.js test: enable linting for tests 2015-05-19 21:21:27 +02:00
test-debug-break-on-uncaught.js test: enable linting for tests 2015-05-19 21:21:27 +02:00
test-debugger-client.js test: enable linting for tests 2015-05-19 21:21:27 +02:00
test-debugger-debug-brk.js test: enable linting for tests 2015-05-19 21:21:27 +02:00
test-debugger-pid.js debugger: improve ESRCH error message 2015-06-05 05:54:19 +02:00
test-debugger-remote.js test: remove hardwired references to 'iojs' 2015-06-03 16:53:05 +02:00
test-debugger-repl-break-in-module.js test: load common.js in all tests 2015-10-06 15:11:47 -07:00
test-debugger-repl-restart.js test: load common.js in all tests 2015-10-06 15:11:47 -07:00
test-debugger-repl-term.js test: load common.js in all tests 2015-10-06 15:11:47 -07:00
test-debugger-repl-utf8.js test: enable linting for tests 2015-05-19 21:21:27 +02:00
test-debugger-repl.js debugger: introduce exec method for debugger 2015-11-17 12:11:40 -08:00
testcfg.py