49d8b18c10
proc, terminal: fix package docstrings
2015-10-27 19:38:57 -07:00
d4d4021a41
proc: Update help for new goroutines flags & minor cleanup
2015-10-18 15:02:14 -07:00
cb529eafab
terminal,proc: Improved goroutine printing
...
Three locations are returned for goroutines: its current location,
its current location excluding unexported runtime functions and
the location of its go instruction.
The command 'goroutines' takes a new parameter to select which
location to print (defaulting to current location w/o runtime)
2015-10-18 14:40:52 -07:00
197c165699
proc/breakpoint Add breakpoint statistics
...
This adds support for breakpoints statistics
Fixes #247
2015-10-09 16:01:06 -07:00
40eec12308
terminal/command: Update clearall help text
2015-10-04 10:59:53 -07:00
c6b5609f77
all: Run go fmt across all files
2015-10-04 10:58:32 -07:00
8c01bcc34d
terminal/command: add optional linespec argument to clearall
...
If an optional linespec argument is passed to clearall command then only
breakpoints matching this linespec will be cleared.
Behavior of clearall command without arguments hasn't changed.
2015-10-04 10:49:25 -07:00
eb2bc2a7ee
terminal: Implements init file and source command
...
The 'source' command reads the file specified as argument and executes
it as a list of delve commands.
Additionally a flag '--init' can be passed to delve specifying a file
containing a list of commands to execute on startup.
Issue #96
2015-10-04 10:32:38 -07:00
bc9ac0ec78
terminal/command: check for SelectedGoroutine == nil in goroutines
...
Fixes #257
2015-10-03 14:29:46 +02:00
f8b4b45a03
terminal/command: Refactor formatting of line numbers
2015-09-30 08:39:14 -07:00
80107dba8d
terminal: Refactor handling of dumb terminals
2015-09-29 22:42:06 -07:00
76b9aa03bb
terminal/command: Support for dumb terminal
...
Support for dumb terminal
Fixes #252
2015-09-29 21:55:41 -07:00
c9b517067b
Implements set command for pointers and numerical values
...
set <variable name> <value>
2015-09-28 22:45:06 -07:00
e02625ab89
terminal/command: Refactor to use stdlib function
...
Replace function with a stdlib implementation.
2015-09-19 23:58:18 -05:00
2407005444
terminal/command: Stack no long takes goroutine id
...
Default numeric argument now simply represents the depth. If you would
like to see the stack trace of another goroutine, use `goroutine <id> bt`.
2015-09-19 23:43:43 -05:00
da39258bec
stack command: -full flag prints local variables and arguments of all the functions on the stack trace
2015-09-18 08:34:21 +02:00
2c48b60bb4
terminal/command: list command w/ frame & goroutine commands
2015-09-13 11:56:20 -05:00
e2acf8ce4a
Sort goroutines by ID
2015-09-10 14:12:42 -04:00
0efe3eef4a
Sort threads by ID
2015-09-10 14:04:59 -04:00
c6ebd80905
Variable evaluation on arbitrary (goroutine, frame) pair.
2015-09-05 12:08:40 -05:00
be2d9c3a84
Add config file and command alias config options.
2015-08-21 14:20:23 -05:00
32b499fa47
api/conversions: Do not shorten file paths
...
The shortening of file paths is purely a terminal UI concern. Move that
code to the presentation layer, and remove from the service layer.
2015-08-19 17:38:53 -05:00
326e65efbc
Misc: Source code formatting
2015-08-17 08:19:04 -05:00
f0afd41d94
terminal/command: Fix 'goroutine' command output
2015-08-17 08:11:00 -05:00
5d489bef99
terminal/command: Add "ls" alias for list command
2015-08-14 08:58:17 -05:00
bb95d534a6
terminal/command: add list command to display source
...
Without arguments, `list` displays source around the current context. A
linespec argument can be taken to display source around that location.
Fixes #58
2015-08-14 08:51:31 -05:00
8aa73bcf21
Promote info subcommands
...
There's no reason to hang a bunch of commands off of the `info` command.
Promoted all commands to be top level.
2015-08-10 21:31:27 -05:00
8e8d2660ef
Improve commands which take a location spec
...
Breakpoints, tracepoints, etc.. take a location spec as input. This
patch improves the expressiveness of that API. It allows:
* Breakpoint at line
* Breakpoint at function (handling package / receiver smoothing)
* Breakpoint at address
* Breakpoint at file:line
* Setting breakpoint based off regexp
2015-08-08 14:41:48 -05:00
5ede17491e
Refactor terminal exit command
2015-07-29 18:19:06 -05:00
d275393488
Add bt alias for stack, quit and q for exit
...
Fixes #182
2015-07-29 18:04:23 -05:00
e5b20612e5
Reformat output of 'help' command
2015-07-29 17:49:23 -05:00
e9b3a9eac1
Remove duplicate command alias
2015-07-29 08:21:35 -05:00
ae1076ec39
Put '> ' in front of the location marker.
...
This makes parsing by external tools much easier.
It is consistent with pdb.
2015-07-25 21:24:59 -05:00
df2bf3cb63
Fix comment typos
2015-07-16 13:07:34 -05:00
3cee10d8bc
Implement 'trace' subcommand
...
Allows a user to execute `dlv trace [regexp]` and Delve will execute the
program and output information on functions matching [regexp].
2015-07-12 15:20:12 -05:00
2f7612d4af
Add command to restart process
...
Fixes #95
2015-07-03 15:35:22 -05:00
6b99c5f519
Cleanup tracepoint commit
...
* Cleanup comments
* Cleanup naming in certain instances
* Modify stacktrace to return current location
2015-06-30 22:16:52 -05:00
3a96d8eed7
trace command
2015-06-29 21:16:55 +02:00
4f6c0de11f
Pad single digit line numbers in output
2015-06-26 07:32:11 -05:00
4d8f5659ac
Fix source file context formatting
2015-06-25 07:46:02 -05:00
07473f04c5
Implement stack command
...
Finishes #63 #64
2015-06-20 15:29:33 -05:00
cc5e5c780c
Update "info" command help msg to include regs
2015-06-19 14:34:27 -05:00
256c83b17b
Implement regs command to print registers values, fixes #62
2015-06-19 14:27:01 -05:00
a71f218e35
Rename: s/BreakPoint/Breakpoint/
2015-06-12 14:48:18 -05:00
fe19f3f20c
Rename: s/EvalSymbol/EvalVariable/
2015-06-12 14:04:14 -05:00
c9acc86601
added length check for args in terminal thread command
2015-05-29 22:59:02 +05:30
819c476aa9
Do not attempt to automatically read locals/args
2015-05-08 16:43:03 -05:00
794d5b1e19
Revert errors.New change
2015-05-04 17:31:13 -05:00
1ad66660a1
Prefer errors.New for unformatted errors
2015-05-01 16:27:29 -05:00
2954e03a20
Introduce client/server separation
...
Refactor to introduce client/server separation, including a typed
client API and a HTTP REST server implementation.
Refactor the terminal to be an API consumer.
2015-04-29 21:05:41 -05:00