Skip to content

Commit

Permalink
fix: updated debugger.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vasusheoran committed Oct 8, 2024
1 parent 2b4d753 commit 11d1f26
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions debugger.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,16 @@ func (d *Debugger) StackTrace() []TraceFrame {
return trace
}

func (d *Debugger) SetVM(vm *VM) {
if vm != nil {
d.vm = vm
}
}

func (d *Debugger) GetVM() *VM {
return d.vm
}

func debugValueToString(v value) string {
switch i := v.(type) {
case *valueFlatString:
Expand Down

0 comments on commit 11d1f26

Please sign in to comment.