mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 03:42:59 +08:00
Added aliases to commands
Added: - break: b - continue: c - step: si - next: n - print: p Taken from the gdb command list Also updated .gitignore to ignore built dlv file in cmd/dlv
This commit is contained in:
committed by
Derek Parker
parent
29d0cd0bde
commit
d54a3262d2
@ -9,7 +9,7 @@ import (
|
||||
|
||||
func TestCommandDefault(t *testing.T) {
|
||||
var (
|
||||
cmds = Commands{make(map[string]cmdfunc)}
|
||||
cmds = Commands{}
|
||||
cmd = cmds.Find("non-existant-command")
|
||||
)
|
||||
|
||||
@ -25,7 +25,7 @@ func TestCommandDefault(t *testing.T) {
|
||||
|
||||
func TestCommandReplay(t *testing.T) {
|
||||
cmds := DebugCommands()
|
||||
cmds.Register("foo", func(p *proctl.DebuggedProcess, args ...string) error { return fmt.Errorf("registered command") })
|
||||
cmds.Register("foo", func(p *proctl.DebuggedProcess, args ...string) error { return fmt.Errorf("registered command") }, "foo command")
|
||||
cmd := cmds.Find("foo")
|
||||
|
||||
err := cmd(nil)
|
||||
|
||||
Reference in New Issue
Block a user