# Troubleshooting

## VSCode extension installation

The VSCode extension lets you configure the paths to Simbolik, Anvil and Forge in the extension settings. It can be the case that the execution environment of the VSCode task and the command line shell are different, causing some `command not found` errors.  These extension settings help VSCode locate the binaries if it cannot find them on the `PATH`.

### Anvil terminated unexpectedly

If you are getting the following error:&#x20;

<figure><img src="https://3687854359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWhAuD1DmzZoWPS62YwmQ%2Fuploads%2FvXyG8ZaHa9F2XziYmLHU%2Fimage.png?alt=media&#x26;token=bd177ce8-7d9f-4a88-b93f-d0a6b691d52e" alt=""><figcaption></figcaption></figure>

There are two main reasons for this error message: First, an Anvil node is already running on the default port, for example because it was launched by another VSCode window. In this case, debugging still works and you can ignore the error message. Second, VSCode cannot find `anvil` on the `PATH`. Then you can take action. Please, first make sure you have `anvil` installed:

```
$ which anvil 
/home/user/.foundry/bin/anvil
```

Copy the anvil location. Then `Open Settings` and paste the anvil location into the anvil-path setting.

<figure><img src="https://3687854359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWhAuD1DmzZoWPS62YwmQ%2Fuploads%2FiBxjsxam0SRH5vpByqZf%2Fimage.png?alt=media&#x26;token=251d8a04-eccb-4d1c-8480-2fc6fd570bdf" alt=""><figcaption></figcaption></figure>

Finally, `Try Again`, or reload the VSCode window, and it should be working!

### Failed to build project

If VSCode is not able to find `forge` and you get a `command not found` error when trying to debug a function:

<figure><img src="https://3687854359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWhAuD1DmzZoWPS62YwmQ%2Fuploads%2FXjvz0lox08pNHViAtLCt%2Fimage.png?alt=media&#x26;token=bf2956ba-e85a-41e9-9efd-8913a738bee1" alt=""><figcaption></figcaption></figure>

Please make sure you have forge installed and copy the path of the forge binary:

```
$ which forge 
/home/user/.foundry/bin/forge
```

Then, `Open Settings` and paste the forge location into the forge-path setting.&#x20;

<figure><img src="https://3687854359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWhAuD1DmzZoWPS62YwmQ%2Fuploads%2Fd31DlJs8ta5fyUZ0Bq06%2Fimage.png?alt=media&#x26;token=4cce9e55-066f-428e-9cb1-440a71f46474" alt=""><figcaption></figcaption></figure>

Then try to Debug the function again and it should be working.&#x20;
