On Sun, Dec 8, 2019 at 10:07 AM <
dick.r...@gmail.com> wrote:
>
> Thanks for your reply. Do you regularly edit standard libs as described (and
> then presumably edit them back)?
While debugging the standard library, yes, I do. But I also agree
that for this case it might be useful to have a more usable mechanism.
> I copied /usr/lib/go-1.13/net/rpc to my project directory, then changed all
> imports of "net/rpc" to "./net/rpc", and then set debugLog (in my shadow copy,
> not /usr/lib/go-1.13). It got the job done but still felt wrong.
If that helped solve the problem then I would encourage you to file an
issue asking for a mechanism to set debugLog in a simpler way, perhaps
via the `GODEBUG` environment variable or perhaps via a function in
the net/rpc package.
Ian