How to work with core dumps of Go programs

If you want to check what is going on in your service during load (on production or during stress testing process), you can take a core dump of your app and load it into Goland for further debugging.

Then open it your Goland:
Navigate to Run | Open Core Dump.
In the Executable field, specify a path to the binary file (for example, ~/Downloads/).
In the Core Dump field, specify a path to the core file (for example, ~/Downloads/core.).
Click OK. In the Debug tool window, select a frame that you want to inspect.

https://rakyll.org/coredumps/
https://www.jetbrains.com/help/go/exploring-go-core-dumps.html
(in Russian) https://habr.com/ru/company/domclick/blog/495450/

Similar Posts

LEAVE A COMMENT