Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Sat, 10 Mar 2018 01:57:00 +0000 strace - add tracing to go programs #profiling #debugging <h3>tracing for go programs</h3> <p>gotrace annotates function calls in go source files with log statements on entry and exit.</p> 13 points posted by kenny https://github.com/jbardin/gotrace 2970 Tue, 28 Nov 2017 16:20:00 +0000 Always be closing - The Tale of a Go Resource Leak #debugging <p>This is the story of a resource leak in one of Square’s Go services and the process of uncovering the root cause. Facing spiky and mysterious system metrics, we used a variety of standard and homemade tools to uncover a subtle bug in one of our core internal frameworks.</p> 5 points posted by kenny https://medium.com/square-corner-blog/always-be-closing-3d5fda0e00da 2469 Sat, 05 Aug 2017 08:04:00 +0000 Postmortem debugging Go services with Delve #debugging 3 points posted by kenny https://blog.gopheracademy.com/advent-2018/postmortem-debugging-delve 3700 Sun, 02 Dec 2018 19:36:00 +0000 How to debug a second test run ? #test #testing #delve #goland #debugging Sometimes, tests can succeed on the first run and fail on subsequent ones, or with the -shuffle flag. But then, how can one debug them using the builtin Delve in GoLand while run configurations only run tests once ? 1 points posted by FGM https://osinet.fr/go/en/articles/debug-second-test 4739 Thu, 09 Jun 2022 11:22:00 +0000 Comment déboguer la seconde exécution d'un test #delve #goland #debugging Parfois, des tests peuvent réussir à la première passe et échouer à la suivante, ou dans un autre ordre. Mais comment les déboguer avec Delve et GoLand alors que les configurations d'exécution n'exécutent les tests qu'une seule fois ?  1 points posted by FGM https://osinet.fr/go/articles/debug-second-test 4733 Wed, 01 Jun 2022 17:36:00 +0000