go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.37k stars 2.13k forks source link

[WIP]feat: add objref subcommand to support outputting object references #3724

Closed jayantxie closed 1 month ago

jayantxie commented 1 month ago

2655

jayantxie commented 1 month ago

Complete basic functionality development and debugging, instructions for use are as follows:

  1. dlv core ${elf_file} ${core_file} / dlv attach ${pid}
  2. objref
  3. go tool pprof -http=:8080 ./objref.out
aarzilli commented 1 month ago

As I've stated on the issue I'm opposed to merging something like this since this is the same approach that viewcore took and has been proven to be too hard to maintain in practice.

jayantxie commented 1 month ago

@aarzilli I see, I'll move it to a standalone project later.