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

Issue 69343017: Add support for command-line editing to ddbg. (Closed)

Created:
7 years, 1 month ago by turnidge
Modified:
7 years, 1 month ago
Reviewers:
hausner
CC:
reviews_dartlang.org, Chris Bracken
Visibility:
Public.

Description

Add support for command-line editing to ddbg. This is implemented using two new files, commando.dart and terminfo.dart. My hope is to eventually submit commando.dart to pub for general use once the wrinkles are ironed out. Commando supports: - Emacs style editing keys: ^A (home) ^E (end) ^B or left arrow (back) ^F or right arrow (forward) ^K (kill from cursor) [^Y not yet implemented] ^L (clear screen) ^U (clear line) backspace - Command line history ^P or up arrow (history previous) ^N or down arrow (history next) - Tab completion single-TAB (complete current command) double-TAB (list all completions) I have not yet completed reasonable command line completion for ddbg. Currently only first part of command is completed. I have only tested this on Mac. It may work on linux and definitely will not work on Windows. I need to implement a fallback mode for windows. I am leaving this to another cl, as the command line debugger, as I believe that the command line debugger is not widely used yet. R=hausner@google.com Committed: https://code.google.com/p/dart/source/detail?r=30585

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 23

Patch Set 10 : #

Patch Set 11 : #

Total comments: 8

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+921 lines, -61 lines) Patch
M tools/ddbg.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 19 chunks +154 lines, -61 lines 0 comments Download
A tools/ddbg/lib/commando.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +710 lines, -0 lines 0 comments Download
A tools/ddbg/lib/terminfo.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
turnidge
Hi Matthias, Here are the changes to add the command line editing to ddbg. Let ...
7 years, 1 month ago (2013-11-20 18:06:31 UTC) #1
hausner
I can't see anything for the moved file tools/ddbg/bin/ddbg.dart. Also, in order to make the ...
7 years, 1 month ago (2013-11-20 23:30:41 UTC) #2
hausner
Couple of comments on TermCap. Will look at the command line file next. https://codereview.chromium.org/69343017/diff/150001/tools/ddbg/lib/commando.dart File ...
7 years, 1 month ago (2013-11-21 16:12:03 UTC) #3
turnidge
Reuploaded the CL. Please try again to see if this fixes the diff of ddbg.dart ...
7 years, 1 month ago (2013-11-21 18:25:10 UTC) #4
hausner
A few comments, but feel free to ignore them. I mostly ask to spark a ...
7 years, 1 month ago (2013-11-21 19:24:56 UTC) #5
hausner
Last set of comments. LGTM, nice improvement! https://codereview.chromium.org/69343017/diff/310001/tools/ddbg/bin/ddbg.dart File tools/ddbg/bin/ddbg.dart (right): https://codereview.chromium.org/69343017/diff/310001/tools/ddbg/bin/ddbg.dart#newcode83 tools/ddbg/bin/ddbg.dart:83: typedef void ...
7 years, 1 month ago (2013-11-21 22:30:01 UTC) #6
turnidge
https://codereview.chromium.org/69343017/diff/150001/tools/ddbg/lib/commando.dart File tools/ddbg/lib/commando.dart (right): https://codereview.chromium.org/69343017/diff/150001/tools/ddbg/lib/commando.dart#newcode16 tools/ddbg/lib/commando.dart:16: static const int runeCtrlA = 0x01; On 2013/11/21 19:24:56, ...
7 years, 1 month ago (2013-11-22 19:59:57 UTC) #7
turnidge
Committed patchset #15 manually as r30585 (presubmit successful).
7 years, 1 month ago (2013-11-22 20:59:04 UTC) #8
turnidge
Unbranched ddbg.dart to make it easier for me to handle the conflict in the file. ...
7 years, 1 month ago (2013-11-22 21:00:13 UTC) #9
hausner
7 years, 1 month ago (2013-11-22 21:14:52 UTC) #10
Message was sent while issue was closed.
Still LGTM.

Powered by Google App Engine
This is Rietveld 408576698