mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 12:01:35 +08:00
Start of info vars
This commit is contained in:
@ -262,7 +262,7 @@ func info(p *proctl.DebuggedProcess, args ...string) error {
|
||||
data = filterVariables(vars, filter)
|
||||
|
||||
default:
|
||||
return fmt.Errorf("unsupported info type, must be sources, funcs, locals, or args")
|
||||
return fmt.Errorf("unsupported info type, must be sources, funcs, locals, args, or vars")
|
||||
}
|
||||
|
||||
// sort and output data
|
||||
|
||||
@ -924,14 +924,11 @@ func (thread *ThreadContext) PackageVariables() ([]*Variable, error) {
|
||||
}
|
||||
|
||||
// Ignore errors trying to extract values
|
||||
_, err := thread.extractVariableFromEntry(entry)
|
||||
val, err := thread.extractVariableFromEntry(entry)
|
||||
if err != nil {
|
||||
fmt.Printf("ERR: %s\n", err.Error())
|
||||
}
|
||||
if err == nil {
|
||||
// fmt.Printf("%s %s\n", val.Name, val.Value)
|
||||
// vars = append(vars, val)
|
||||
continue
|
||||
}
|
||||
vars = append(vars, val)
|
||||
}
|
||||
|
||||
return vars, nil
|
||||
|
||||
Reference in New Issue
Block a user