# Setting up the Environment

Source: https://help.codestencil.com/code-nanites/setting-up-the-environment

When you are debugging a code nanite this is how you setup your environment.

![CS&#95;clip0035](https://codestencil.com/docs/cs_clip0035.png)

(1) Specify the path to your CodeStencil executable. It will usually be under Program File (x86), in the Zera Systems folder:

"C:\\Program Files (x86)\\Zera Systems\\CodeStencil\\CodeStencil.exe"   OR

"D:\\Program Files (x86)\\Zera Systems\\CodeStencil\\CodeStencil.exe"

(2) Add the path to the CodeStencil debug file with the parameter flag to load it:

D:\\Custom Stencils\\3rd Party Stencils\\Syncfusion\\Blazor-DataGrid\\src\\CodeStencil.Debug.xml

The [Codestencil.Debug.xml](https://codestencil.com/docs/cs_codestencil_debug_xml.htm) file can be used to specify the folder code nanites will be loaded from.

After CodeStencil starts, you can verify the loaded paths of the assemblies from Help \| About
