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 are 
100x slower; combining vprint's approach with debug.Stack() calls and an 
editor that understands stack traces (e.g. emacs)... makes for rapid 
debugging.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4ef26c98-22bf-413f-98c5-66f295199eaan%40googlegroups.com.

Reply via email to