Stack and Frames

The list of frames displays the current call stack. A single element, i.e. a line in the screenshot, is called a “frame”. The first element is the top frame. Each frame represents an invocation of a function or a script.

List of stack frames
List of stack frames

The background color of a frame signals its type:

Variables View

The variables view displays variable names and values.

A click on a frame updates the variables view on the right:

The variables view
The variables view

The top frame supports these elements:

All other frames only support the list of arguments, i.e. they do not support the list variables.

Variable type

Array and associative array
Arrays and associative arrays (aka maps) can be expanded to display the contained elements line by line.
Elements of an array and an associative array
Elements of an array and an associative array
Number
Variables declared via declare -i or local -i are integers, values are displayed as numeric values.
String
All other variables are of type String, the values displayed in quotes.

How to view all available variables

By default only the variables modified by your script are displayed. A snapshot of all available variables is captured before the script is executed. Variables, which still have their initial values, are hidden by default.

You can configure the view to display all available variables.

  1. Click on the gear symbol on the left of the list of frames
  2. Check the option Show environment variables.
    All variables in the variables view
    All variables in the variables view