Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

Another method of usage of EDA debugger is the initiation of calculation for debugging directly from ESL script. This method requires supporting functions of the EDA debugger. In the first step, the user must create a debugging connection with the process that executes EDA calculations. To establish this connection, use the function %HI_EDADebugOpen. The function %HI_EDADebugClose closes this connection. After creating debug connection, the user may start the calculation of the calculated vector for debugging by calling the function %HI_EDADebugVectorRec. When calling %HI_EDADebugCalcFunctionRec, it activates debugging calculation of the EDA-L formula. Functions %HI_EDADebugVectorRec and %HI_EDADebugCalcFunctionRec do not wait for finishing the calculation that was started by these functions.

Third method of usage is the possibility of editing the formula of the vector. For editing, it's necessary to insert the initial formula using function %HI_SetText. The edited entry can then be retrieved by calling the %HI_GetText function. Pressing the "Syntax Check" button generates an OnDebuggerAction event. The result of the syntax check can then be inserted using the function %HI_SetDebuggerResult.

Example of an EDA debugger that is used in a picture opened in HI:

...

  • Toolbar – contains buttons that represent are used for starting debugging, editing and entering debug commands.
  • Tabs with calculations – contains source formulas of vector calculation.
  • Info tabs:
    • Compile - contains compilation and static analysis reports.
    • Debug -
    • Messagescontains messages that have been were generated during the calculation.
    • Notations – contains a list of lines that contain comments beginning with the word TODO or FIXME.
    • Watch – contains the tracked variables of the selected vector.
    • Breakpoints - contains a list of breakpoints placed in the editorVariables – contains monitored variables of selected vector.
  • Call stack – contains the current list of nested vectors of aborted calculation.

...

Buttons represent the commands that control debugging of calculations.

ToolbarImage RemovedImage Added

List of vectors used when debugging (closed vector included) – enables to open (select) vector which will be displayed.
Selection of vectorImage Removed

Image Added

Image Removed
Enable/disable the numbering of rows in the formula.
Image Removed
Go to row in displayed vector CTRL+G.

Image Added

Syntax check
Image Removed

Image Added

Connect to calculation – connection to running calculation which should be debugged. Dialog window displays the list of all running EDA calculations in the application with information such as on which EDA server the calculation runs, from which client was started, and the initiate vector that is calculated.

EDA calculationsImage Removed


Image Added

Image Removed

Image Added

List of

local variables in displayed vector - enables to add variables into Variable tab.
Image Removed
Image Removed
The icon which informs about the status of calculation:
  1. Grey – the calculation is stopped,
  2. Red – calculating.

constants

Image Added

List of functions

Image Added

Image Removed
Continue in the calculation.
Image Removed
Continue in calculation up to row with the cursor (if on the row is not any script command, calculation continues up to next row with command).

Image Added

Image Removed
Step inside – if the row contains loading of the calculated vector, the process continues within it.
Image Removed

Image Added

Step outside – if the row contains loading of calculated vector, loading is executed and calculation stops on the next row.
Image Removed

Image Added

Continue up to return from the vector.
Image Removed

Image Added

Abort calculation.
Image Removed

Image Added

Stop calculation.
Image Removed

Image Added

Aborted when occurring an exception – indicates two statuses differentiated by color:
  1. Grey White background – do not abort,
  2. Red Blue background – abort.
Image Removed
Delete all breaks in all vectors.

Image Added

Image Removed
Finish calculation debugging (calculation will continue).

...

Tabs contains the vector formulas that were used when debugging connected calculations. Vector formula occurs in tabs automatically after aborting the calculation - tabs contain all vectors that are in the current call stack. Users may manually close (hide) the tab with the vector formula and then open it again (via the list of vectors).Tabs show the name and version of the vector and indicate its status (3 options):

  • Grey circle – vector, at the time of aborting calculation, does not occur in the call stack.
  • Green circle – vector, at the time of aborting calculation, occurs in the current call stack.
  • Red circle – vector, at the time of aborting calculation, occurs in the current call stack and contains a command that will be executed.

TabsImage Removed

Tab with vector formula

Vector formulaImage Removed

It contains:

  • Optional row numbering
  • Breakpoints – red circles
  • Mark for aborting the execution of calculation – green arrow
  • Vector formula with syntax highlighting:
    • key words and functions – turquoise color,
    • local variable – yellow color,
    • delimiters – white color.
  • Description of variable and its value (for one-element variables) with the cursor.

Popup menu that occurs over formula enables:

  • to add a selected local variable into the list of watched variables of vector,
  • to hide tabs of vector – watching variables and breakpoints stays activated. Tabs may be displayed again via the list of vectors.

...

Image Added

Kotva
zalozky
zalozky
Info tabs

...

Compile

The tab contains a list of messages from the static analysis and from the syntax check (set via %HI_SetDebuggerResult)

Debug

The tab contains

...

Messages

The tab contains the messages that were generated during the calculation. Users may write some notes in the tab and delete the selected texts.

...

Notations

The tab that contains the values of watched local variables of selected vector. The sign +/- collapses/expands the vector variables.
Variables tabImage Removeda list of lines that contain a comment beginning with the text TODO or FIXME.

Watch

Tab of the values ​​of monitored local variables of the selected vector.

 Image Added
It is filled from the list of local variables via the command line or popup menu that appears over the selected variable in the window with the vector formula.
Watched local variablesImage Removed
Variables, the values of which are already watched, are differentiated by color (turquoise color). Selecting the variable of Array type, the user may enter a range of values that will be watched:
Range of local variableImage Removed
Selection may be defined by range and name. To display the items to the last one, enter the zero at the end of the range, e.g. 3,11-14,18,25-0.
Exaple
The monitored variable/group of variables can be removed from the list with the help of a popup menu. The value can be changed directly in the list of watched variables.
A Popup menu that appears over the list of variables enables to:

  • remove selected variable/group of variables,
  • remove all variables,
  • define new values for variables,
  • delete the change of the value of selected variables.

Breakpoints

The tab displays all breakpoints placed in the current vector formula.

Kotva
zasobnik
zasobnik
Call stack

...