Provide more info when inspecting call frames.
@@ -29,17 +29,14 @@ func (is *instructionSet) inspect() string {
}
func (cf *goMethodCallFrame) inspect() string {
- if cf.ep != nil {
- return fmt.Sprintf("Name: %s. is block: %t. ep: %d", cf.name, cf.isBlock, len(cf.ep.locals))
- }
- return fmt.Sprintf("Name: %s. is block: %t", cf.name, cf.isBlock)
+ return fmt.Sprintf("Go method frame. File name: %s. Method name: %s.", cf.FileName(), cf.name)
}
func (cf *normalCallFrame) inspect() string {
if cf.ep != nil {
- return fmt.Sprintf("Name: %s. is block: %t. ep: %d", cf.instructionSet.name, cf.isBlock, len(cf.ep.locals))
+ return fmt.Sprintf("Normal frame. File name: %s. IS name: %s. is block: %t. ep: %d", cf.FileName(), cf.instructionSet.name, cf.isBlock, len(cf.ep.locals))
}
- return fmt.Sprintf("Name: %s. is block: %t", cf.instructionSet.name, cf.isBlock)
+ return fmt.Sprintf("Normal frame. File name: %s. IS name: %s. is block: %t", cf.FileName(), cf.instructionSet.name, cf.isBlock)
}
func (cfs *callFrameStack) inspect() string {
