Commit ce423f3
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: #1491
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent 6c16c40 commit ce423f3Copy full SHA for ce423f3
File tree
Expand file treeCollapse file tree
3 files changed
+35
-4
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- test/debugger
Expand file treeCollapse file tree
3 files changed
+35
-4
lines changedOpen diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
143 | 143 | |
144 | 144 | |
145 | 145 | |
| 146 | + |
146 | 147 | |
147 | 148 | |
148 | 149 | |
|
Collapse file
+23-3Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
142 | 142 | |
143 | 143 | |
144 | 144 | |
145 | | - |
| 145 | + |
146 | 146 | |
147 | 147 | |
148 | 148 | |
| ||
161 | 161 | |
162 | 162 | |
163 | 163 | |
164 | | - |
| 164 | + |
165 | 165 | |
166 | 166 | |
167 | 167 | |
| ||
657 | 657 | |
658 | 658 | |
659 | 659 | |
| 660 | + |
660 | 661 | |
661 | 662 | |
662 | 663 | |
| ||
949 | 950 | |
950 | 951 | |
951 | 952 | |
| 953 | + |
| 954 | + |
| 955 | + |
| 956 | + |
| 957 | + |
| 958 | + |
952 | 959 | |
953 | 960 | |
954 | 961 | |
| ||
1527 | 1534 | |
1528 | 1535 | |
1529 | 1536 | |
| 1537 | + |
| 1538 | + |
| 1539 | + |
| 1540 | + |
| 1541 | + |
| 1542 | + |
| 1543 | + |
| 1544 | + |
| 1545 | + |
| 1546 | + |
| 1547 | + |
| 1548 | + |
1530 | 1549 | |
1531 | 1550 | |
1532 | 1551 | |
| ||
1730 | 1749 | |
1731 | 1750 | |
1732 | 1751 | |
1733 | | - |
1734 | 1752 | |
| 1753 | + |
1735 | 1754 | |
1736 | 1755 | |
1737 | 1756 | |
| 1757 | + |
1738 | 1758 | |
1739 | 1759 | |
1740 | 1760 | |
|
Collapse file
test/debugger/test-debugger-repl.js
Copy file name to clipboardExpand all lines: test/debugger/test-debugger-repl.js+11-1Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | | - |
| 54 | + |
55 | 55 | |
56 | 56 | |
57 | 57 | |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
58 | 68 | |
59 | 69 | |
60 | 70 | |
|
0 commit comments