# Editing types/Scripts setup

## **Editing types**

To select Editing types click on the![](https://1123742694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgF394Y8wbK0k-qZW4n%2Fsync%2F7591107640a0193dfe9b107b053d3f5f987cf107.png?generation=1628062553557048\&alt=media) button on the main menu of EvoCode. There are two types available:

### Release mode

This mode of compilation is used as Product ready mode. If the source code is free from errors and ready for applying user can select this mode.

### Debug mode

This mode of compilation is used for debugging source code. It is very useful for finding mistakes before script usage. Users can debug C# code. The mode can be running from the main panel button![](https://1123742694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgF394Y8wbK0k-qZW4n%2Fsync%2F838550de3507bd31e63b54cc661b8136dd636f84.png?generation=1628062553305628\&alt=media).

Three other buttons are available for debug mode:

* Step info![](https://1123742694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgF394Y8wbK0k-qZW4n%2Fsync%2Fb80da84c6260f8105952260b5f0d2b42db1aaaab.png?generation=1628062553340683\&alt=media)

  – allows going through all code lines independently of breakpoints;&#x20;
* Step over![](https://1123742694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgF394Y8wbK0k-qZW4n%2Fsync%2Fddc252096acfd13e061b55412fa0e87482e50c81.png?generation=1628062553217074\&alt=media)– allows going over some program steps;&#x20;
* Step out![](https://1123742694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgF394Y8wbK0k-qZW4n%2Fsync%2F4ac9740bf3827378aaac348128d9984d1d603db8.png?generation=1628062553415420\&alt=media)

  – script will be running until the breakpoint is reached.

To begin debugging source code, users should first set breakpoints. A breakpoint can be set by clicking between the code line numbers and the edge of the source code editor window, or by clicking on the![](https://1123742694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgF394Y8wbK0k-qZW4n%2Fsync%2F083d23af48aa38cbdc52479e27365709a826dc57.png?generation=1628062553447962\&alt=media)button. After placing a breakpoint it will be visible in the margin as a red circle. A user can remove all breakpoints from the source code by clicking on the![](https://1123742694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgF394Y8wbK0k-qZW4n%2Fsync%2Fa43f4e4acad656eb27f6d8763b8f74526bf79c3e.png?generation=1628062553151824\&alt=media) button.

## **Scripts** **setup**

![](https://1123742694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgF394Y8wbK0k-qZW4n%2Fsync%2Ff1ecc8b0969d26fdeda47c808dc049a9039d6727.png?generation=1628062553146338\&alt=media)

The Scripts setup window shows information about selected module. This information is specified during the creation of any algorithm.

* Main symbol – evokes the lookup for selection of the main symbol for backtesting;
* Aggregation – allows to select the type of aggregation (time) of historical data;
* Range – allows to adjust what range of historical data will be used for backtesting.
