MetaEditor Help

Debug

The "Debug" tab is only displayed when this process is running. The window is separated into two parts. The left part displays the call stack and the right one displays the values of observed expressions:

Debug

Call Stack

The call stack is displayed in the form of a table with the following fields:

  • File — the name and the path to the file the function was called from;
  • Function — the name of the function where the current stage of the program execution is performed;
  • Line — the number of line where the execution of program was stopped.

If no breakpoints are toggled and none of the commands of the step-by-step debugging are executed, the left part of the window will be displayed empty. Using context menu commands one can show/hide the grid that separates fields and enable/disable automatic arrangement of columns.

Watching Expressions

The right part of the "Debug" window is intended for watching values of expressions during the debugging process. The information is shown in the following fields:

  • Expression — the name of the watched expression;
  • Value — the value of the watched expression;
  • Type — the type of the expression.

If the value of an expression is not defined or not calculated at the moment, the "Unknown identifier" entry will be displayed in the corresponding field. Such expressions are marked by the Unknown identifier icon.

In order to add an expression to view in this window one should press the "Add Watch Add Watch" button in the context menu of the window of working with the source code.

Context Menu

The context menu of the right part of the window allows executing a number of commands:

  • Edit — edit the name of the watched expression. The same action can be performed by pressing "F2" key or by a double click on the name field of the expression;
  • Add Add — add an expression. The new line will appear in the table as soon as you press this button. In the "Expression" field one should enter the name of the watched expression. One can add an expression by pressing the "Insert" key as well;
  • Delete Delete — delete the selected expression. The same action can be performed by pressing the "Delete" key;
  • Copy Value Copy Value — copy the value of the expression to the clipboard;
  • Grid — show/hide grid to separate fields. The same action can be performed by pressing the "G" key;
  • Auto Arrange — enable/disable the automatic arrangement of the column size. The same action can be performed by pressing the "A" key.