Re: [go-nuts] recommendations please: go source level debugger for linux

2023-02-07 Thread Jason E. Aten
https://github.com/glycerine/vprint shows you how to get source file and line numbers (and timestamps) automatically in your PMD print statements. For examples, I use vv() or VV() for unconditional prints, and pp() or PP() for condition prints that only print if Verbose is true. Debuggers ar

Re: [go-nuts] recommendations please: go source level debugger for linux

2023-02-04 Thread Pat Farrell
On Thursday, February 2, 2023 at 10:49:40 PM UTC-5 Ian Lance Taylor wrote: Have you tried Delve? https://github.com/go-delve/delve Thanks I will check into it. One point about go and PMD, because the compile time is so fast, using PMD is not nearly as painful as it would be in other languages tha

Re: [go-nuts] recommendations please: go source level debugger for linux

2023-02-02 Thread Ian Lance Taylor
On Thu, Feb 2, 2023 at 6:51 PM Pat Farrell wrote: > > I've been using PMD to debug my go code since I started. > (PMD => Poor Man's Debugger, i.e fmt.Printf statements) > and it was OK for my initial simple stuff. But as I am writing > more complex code, I think its time to find a nice source leve

Re: [go-nuts] recommendations please: go source level debugger for linux

2023-02-02 Thread Kurtis Rader
FWIW, I still use the Poor Man's Debugger most of the time to understand the behavior of running programs where I can afford to iterate while trying to understand a problem. Having said that I do regularly use an actual debugger to examine core dumps (both user space and from a Unix operating syste

[go-nuts] recommendations please: go source level debugger for linux

2023-02-02 Thread Pat Farrell
I've been using PMD to debug my go code since I started. (PMD => Poor Man's Debugger, i.e fmt.Printf statements) and it was OK for my initial simple stuff. But as I am writing more complex code, I think its time to find a nice source level debugger. Any recommendations? I guess I could use an IDE