diff --git a/command/command.go b/command/command.go index 9f52aa1d..34d5c0db 100644 --- a/command/command.go +++ b/command/command.go @@ -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 diff --git a/proctl/variables.go b/proctl/variables.go index 4c134d27..4cf477dc 100644 --- a/proctl/variables.go +++ b/proctl/variables.go @@ -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