GoLand 2019.2 Help

Examining suspended program

When the execution reaches the breakpoint, or you suspend a program manually, you can examine your application by analyzing frames.

A frame corresponds to an active method or function call. A frame stores the local variables of the called method or function, the arguments to it, and the code context that enables expression evaluation.

All currently active frames are displayed on the Frames pane of the Debug tool window, where you can switch between them and analyze the information stored therein.

Examining a suspended goroutine

  1. Select a goroutine from the goroutine selector list on top of the Frames pane. The list of frames is displayed:

    Frame selection

  2. Select a frame from the Frames list. The Variables pane shows all the variables available to the method call in this frame, so you can further explore them.

    Frame selection
  • Use up and down arrow buttons on the toolbar.

  • Use Up and Down shortcuts.

You do not need to perform any actions to navigate to the frame's source code. GoLand automatically jumps to the source code of the selected frame in the editor.

View INT values as binary, decimal and hexadecimal numbers

In the Debug tool window, right-click a value with the INT value and navigate to View as. Select the number presentation that you want: binary, decimal, or hex (hexadecimal).

To set the default number presentation for the debugger, open settings Ctrl+Alt+S and navigate to Build, Execution, Deployment | Debugger | Data Views | Go and select the necesary value in Default integer format.

View INT values as binary, decimal and hexadecimal numbers
Last modified: 6 September 2019