Features Tutorials

Debugging with GoLand – Windows minidumps

A while back we talked about debugging the core dumps produced on Linux systems.
Since then, the IDE has had an update that allows it to debug the equivalent memory dumps produced on Windows systems, called minidumps. As with core dumps, minidumps can be analyzed on any operating system, not just on Windows. Please note that you will need GoLand 2019.1 or higher to use this feature.

Let’s start with getting the minidump itself. As with coredumps, set the Output Directory of the run configuration; this is where the binary will be created.

Debugging with GoLand - 25

Then, start the application and use it as usual. When you are ready, open the Task Manager, go to Processes, select your application and then right-click it and select Create dump file. This will give you a location for the minidump file, such as %TMP%\<binary-name>.DMP

Debugging with GoLand - 26

Now, go to Run | Open Core Dump… , select the application binary, the minidump generated above, and the IDE will show the debugger window.

Debugging with GoLand - 27

That’s it for today. Please let us know what feedback you have in the comments section below, on Twitter, or on our issue tracker. We are also looking for your thoughts on what topics you would like to see covered next.

Discover more