mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 12:47:22 +08:00
Implement 'trace' subcommand
Allows a user to execute `dlv trace [regexp]` and Delve will execute the program and output information on functions matching [regexp].
This commit is contained in:
@ -272,6 +272,10 @@ func (d *Debugger) collectBreakpointInformation(state *api.DebuggerState) error
|
||||
}
|
||||
bpi.Variables[i] = api.ConvertVar(v)
|
||||
}
|
||||
vars, err := d.FunctionArguments(d.process.CurrentThread.Id)
|
||||
if err == nil {
|
||||
bpi.Arguments = vars
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -370,7 +374,7 @@ func (d *Debugger) FunctionArguments(threadID int) ([]api.Variable, error) {
|
||||
for _, v := range pv {
|
||||
vars = append(vars, api.ConvertVar(v))
|
||||
}
|
||||
return vars, err
|
||||
return vars, nil
|
||||
}
|
||||
|
||||
func (d *Debugger) EvalVariableInThread(threadID int, symbol string) (*api.Variable, error) {
|
||||
|
||||
Reference in New Issue
Block a user