Auto instrument packages with breakpoints
Closed this issue · 0 comments
willfaught commented
A flag that auto instruments packages with breakpoints instead of printing a warning would be useful. Something like:
Before:
godebug run main.go
godebug run: Ignoring breakpoint at foo.com/bar/baz.go:100 because package "bar" has not been flagged for instrumentation. See 'godebug help run'.
After:
godebug run -autoinstrument main.go
godebug run: Ignoring breakpoint at foo.com/bar/baz.go:100 because package "bar" has not been flagged for instrumentation. See 'godebug help run'.
Perhaps it should even be the default, and you should have to disable it with -noautoinstrument?