# Debugging frontend-workstation from a module

If for some reason frontend-workstation does not work when developing a module, you may follow the steps below to try digging into the details.

First of all, make sure you have the frontend-workstation repo cloned and installed locally.
Then in the frontend-workstation repo run the following:

```bash
# in frontend-workstation repo
yarn link
```

And then in your module repo run the following:

```bash
# in frontend-x repo
yarn link @orchard/frontend-workstation
```

You should now have linked the frontend-workstation to your local copy.

Back in the frontend-workstation repo. If you are doing changes to the frontend-workstation source code you need to run:

```bash
# in frontend-workstation repo
yarn build
```

This will build new bundles.

And finally, restart your module to see the changes:

```bash
# in frontend-x repo
yarn start
```

**NB** You should unlink your frontend-workstation version after you are done debugging.

```bash
# in frontend-x repo
yarn unlink @orchard/frontend-workstation
yarn install --force
```
