# debug: Start Zotonic in the foreground with an Erlang shell

Source: https://zotonic.com/docs/3016/debug-start-zotonic-in-the-foreground-with-an-erlang-shell

URI: https://zotonic.com/id/3016

Language: en

Start Zotonic in the foreground with an Erlang shell.

Syntax
------

```text
bin/zotonic debug 
```

Requirements and effects
------------------------

Starts a node using the selected configuration; use it when that node is not already running.

Keep the terminal open while developing and read startup errors there. For a node that is already running, use `shell` instead. The foreground shell belongs to the running VM; commands that terminate that VM also stop the sites it hosts.

Example
-------

```sh
bin/zotonic debug
```

Run commands from the Zotonic workspace root. Replace `garden` with your site name where applicable.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3016?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3016?language=en>)
